PHP code example of arodu / cakelte
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;
protected string $layout = 'CakeLte.default';
public function initialize(): void
{
parent::initialize();
$this->initializeCakeLte();
}
}
bash
cp vendor/arodu/cakelte/config/cakelte.php config/cakelte.php