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

1.1 2021-03-12 11:29 UTC

This package is auto-updated.

Last update: 2024-04-12 18:10:44 UTC


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);
});