PHP code example of bor-attila / cakephp-rollup

1. Go to this page and download the library: Download bor-attila/cakephp-rollup 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/ */

    

bor-attila / cakephp-rollup example snippets


$this->loadHelper('CakephpRollup.Css');

$this->loadHelper('CakephpRollup.Css', [
    'storage' => [
        'body' => ['bodyclass'],
    ]
]);

$this->loadHelper('CakephpRollup.Stylesheet', [
    'cache' => 'default'
]);

$this->loadHelper('CakephpRollup.Javascript', [
    'cache' => 'default'
]);

$this->addPlugin('CakephpRollup');

<html>
    <head>
    </head>
    <body <?= $this->Css->get(); 

<html>
    <head>
    </head>
    <body>
        ....
        <?= $this->Html->script($this->Javascript->files('main', 'debug', 'awesome'));