alisson-nascimento / cakephp-theme-adminlte
CakePHP 3.x AdminLTE Theme
Installs: 85
Dependents: 0
Suggesters: 2
Security: 0
Stars: 0
Watchers: 1
Forks: 111
Language:JavaScript
Type:cakephp-plugin
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.6
Requires (Dev)
- phpunit/phpunit: ~4.1
README
Este projeto é um fork de maiconpinto/cakephp-adminlte-theme
Instalação
Você pode instalar usando o composer.
composer require alisson-nascimento/cakephp-theme-adminlte
Habilitar Plugin
$ bin/cake plugin load AdminLTE
Habilitar Theme
// src/Controller/AppController.php public function beforeRender(Event $event) { $this->viewBuilder()->setTheme('AdminLTE'); }
Habilitar Form
// src/View/AppView.php public function initialize() { $this->loadHelper('Form', ['className' => 'AdminLTE.Form']); }
Configuração
// To customize configuration paste it at end of method initialize in src/Controller/AppController.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' ]);
Customizar Layout
Página de debug
Added link to default page of CakePHP.