PHP code example of connect232 / carousel-videos

1. Go to this page and download the library: Download connect232/carousel-videos 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/ */

    

connect232 / carousel-videos example snippets


$this->addPlugin('CarouselVideos');

<?= $this->cell('CarouselVideos.Carousel'); 

<?= $this->Html->script('CarouselVideos.carousel'); 

paths[] = ../vendor/connect232/carousel-videos/webroot/js/*
files[] = carousel.js
paths[] = ../vendor/connect232/carousel-videos/webroot/css/*
files[] = carousel.css

$routes->prefix('admin', function (RouteBuilder $routes) {
    $routes->loadPlugin('CarouselVideos');
    $routes->fallbacks(DashedRoute::class);
});