PHP code example of loveorigami / yii2-magnific-popup
1. Go to this page and download the library: Download loveorigami/yii2-magnific-popup 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/ */
loveorigami / yii2-magnific-popup example snippets
use lo\widgets\magnific\MagnificPopup;
echo MagnificPopup::widget(
[
'target' => '#mpup',
'options' => [
'delegate'=> 'a',
]
]
);
echo MagnificPopup::widget(
[
'target' => '#mpup',
'options' => [
'delegate'=> 'a',
],
'effect' => 'with-zoom' //for zoom effect
]
);