PHP code example of keygenqt / yii2-fancybox3
1. Go to this page and download the library: Download keygenqt/yii2-fancybox3 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
keygenqt / yii2-fancybox3 example snippets
use keygenqt\fancyBox3\FancyBox3;
FancyBox3::begin([
'nameBtn' => 'Open FancyBox3',
'btnOption' => [
'class' => 'btn'
],
'jsOption' => [
'focus' => false,
]
])
use keygenqt\fancyBox3\FancyBox3;
<?= FancyBox3::widget([
'nameBtn' => 'Open YouTube',
'src' => 'https://www.youtube.com/watch?v=SRnzisLnnUo',
'btnOption' => [
'class' => 'btn'
],
'jsOption' => [
'focus' => false,
]
])