PHP code example of rogeecn / yii2-unslider

1. Go to this page and download the library: Download rogeecn/yii2-unslider 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/ */

    

rogeecn / yii2-unslider example snippets


<?= \rogeecn\UnSlider\Slider::widget([
    'slides' => [
        [
            'body' => 'Unslider widget for Yii2', // body will work when image field is not exist
            'url'  => "#",
        ],
        [
            'body' => $this->render("_body_view"), // you can render html instead
        ],
        [
            'image'   => '/images/cat2.jpg',
            'body'  => 'description',
        ],
    ],

]); 

php composer.phar