connect232 / carousel-videos
Carousel Videos plugin for CakePHP
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.2
- cakephp/cakephp: ~4.2.0
Requires (Dev)
- phpunit/phpunit: ^8.0
README
Prerequisites
Bootstrap 4
Installation
Run:
composer require connect232/carousel-videos
Usage
Run :
bin/cake plugin load CarouselVideos
Or in your src/Application.php
add:
$this->addPlugin('CarouselVideos');
Run migrations:
bin/cake migrations migrate -p CarouselVideos
Add carousel cell to template file:
<?= $this->cell('CarouselVideos.Carousel'); ?>
Include script and css:
<?= $this->Html->script('CarouselVideos.carousel'); ?>
<?= $this->Html->css('CarouselVideos.carousel'); ?>
or if using AssetCompress plugin in you asset_compress.ini file add:
paths[] = ../vendor/connect232/carousel-videos/webroot/js/*
files[] = carousel.js
paths[] = ../vendor/connect232/carousel-videos/webroot/css/*
files[] = carousel.css
Add to your routes file:
$routes->prefix('admin', function (RouteBuilder $routes) {
$routes->loadPlugin('CarouselVideos');
$routes->fallbacks(DashedRoute::class);
});