dejw-cake / adminlte
CakePHP 3.x AdminLTE Theme. Based on maiconpinto/cakephp-adminlte-theme.
Installs: 6
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:cakephp-plugin
Requires
- php: >=5.5.9
- cakephp/cakephp: >=3.3.2 <4.0.0
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is auto-updated.
Last update: 2024-11-21 16:50:26 UTC
README
CakePHP AdminLTE Theme
Installation
You can install using composer.
composer require dejw-cake/adminlte
Enable Plugin
// config/bootstrap.php Plugin::load('DejwCake/AdminLTE', ['bootstrap' => true, 'routes' => true]);
Enable theme
// src/Controller/AppController.php public function beforeRender(Event $event) { $this->viewBuilder()->setTheme('DejwCake/AdminLTE'); }
Enable Form
// src/View/AppView.php public function initialize() { $this->loadHelper('Form', ['className' => 'DejwCake/AdminLTE.Form']); }
Configure
// src/Controller/AppController.php use Cake\Core\Configure; public function beforeRender(Event $event) { // ... $this->set('theme', Configure::read('Theme')); }
// To customize configuration paste it at end of file config/bootstrap.php Configure::write('Theme.title', 'CMS'); Configure::write('Theme.logo', [ 'mini' => 'CMS', 'large' => 'CMS' ]);