PHP code example of naoufal450 / cakephp-adminlte-theme
1. Go to this page and download the library: Download naoufal450/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/ */
naoufal450 / cakephp-adminlte-theme example snippets
// src/Controller/AppController.php
public function beforeRender(Event $event)
{
$this->viewBuilder()->setTheme('AdminLTE');
// For CakePHP before 3.5
$this->viewBuilder()->theme('AdminLTE');
}
// src/View/AppView.php
public function initialize()
{
$this->loadHelper('Form', ['className' => 'AdminLTE.Form']);
}
// To customize configuration paste it at end of file config/bootstrap.php
Configure::write('Theme', [
'title' => 'AdminLTE',
'logo' => [
'mini' => '<b>A</b>LT',
'large' => '<b>Admin</b>LTE'
],
'login' => [
'show_remember' => true,
'show_register' => true,
'show_social' => true
],
'folder' => ROOT,
'skin' => 'blue' // default is 'blue'
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.