1. Go to this page and download the library: Download dariob/cakephp-utils 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/ */
dariob / cakephp-utils example snippets
Configure::load('admin_lte', 'default');
return [
'Theme' => [
'folder' => ROOT,
'title' => 'My App',
'logo' => [
// This will be displayed when main menu is collapsed.
// You can use an <img> tag in here or anything else you want.
'mini' => 'A',
// This will be displayed when main menu is expanded.
// You can use an <img> tag in here or anything else you want.
'large' => 'My App',
],
'login' => [
'show_remember' => true,
'show_register' => false,
'show_social' => false,
],
],
];
// At the top of the file, together with other use statements:
use Cake\Core\Configure;
public function beforeRender(Event $event)
{
$this->viewBuilder()->theme('AdminLTE');
$this->set('theme', Configure::read('Theme'));
// $this->set('user', $this->Auth->user());
$this->set('user', []);
}
public function initialize()
{
$this->loadHelper('Form', ['className' => 'AdminLTE.Form']);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.