PHP code example of kba-team / cakephp-adminlte-theme
1. Go to this page and download the library: Download kba-team/cakephp-adminlte-theme 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/ */
kba-team / cakephp-adminlte-theme example snippets
// src/Application.php
public function bootstrap()
{
$this->addPlugin('AdminLTE');
}
// src/Controller/AppController.php
use Cake\Event\EventInterface;
public function beforeRender(EventInterface $event)
{
$this->viewBuilder()->setTheme('AdminLTE');
}
// src/View/AppView.php
public function initialize()
{
$this->loadHelper('Form', ['className' => 'AdminLTE.Form']);
}