1. Go to this page and download the library: Download arodu/cakelte 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/ */
arodu / cakelte example snippets
namespace App\View;
use Cake\View\View;
use CakeLte\View\CakeLteTrait;
class AppView extends View{
use CakeLteTrait;
public string $layout = 'CakeLte.default';
public function initialize(): void{
parent::initialize();
$this->initializeCakeLte();
//...
}
}
namespace App\View;
use Cake\View\View;
use CakeLte\View\CakeLteView;
class AppView extends CakeLteView{
public function initialize(): void{
parent::initialize();
//...
}
}