1. Go to this page and download the library: Download funayaki/bootstrap-ui 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/ */
funayaki / bootstrap-ui example snippets
\Cake\Core\Plugin::load('BootstrapUI');
namespace App\View;
use BootstrapUI\View\UIView;
class AppView extends UIView
{
/**
* Initialization hook method.
*/
public function initialize()
{
//Don't forget to call the parent::initialize()
parent::initialize();
}
}
namespace App\View;
use BootstrapUI\View\UIViewTrait;
use Cake\View\View;
class AppView extends View
{
use UIViewTrait;
/**
* Initialization hook method.
*/
public function initialize()
{
//render the initializeUI method from the UIViewTrait
$this->initializeUI();
}
}
// in the <head>
echo $this->Html->css('path/to/bootstrap.css');
echo $this->Html->script(['path/to/jquery.js', 'path/to/bootstrap.js']);