hecsedli / cakephp3adminlte
CakePHP 3.x AdminLTE Theme. Based on maiconpinto/cakephp-adminlte-theme
Installs: 341
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 111
Language:JavaScript
Type:cakephp-plugin
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is not auto-updated.
Last update: 2025-05-09 09:31:28 UTC
README
Installation
You can install using composer.
composer require hecsedli/cakephp3adminlte
Enable Plugin
// config/bootstrap.php Plugin::load('AdminLTE', ['bootstrap' => true, 'routes' => true]);
Enable theme
// src/Controller/AppController.php public function beforeRender(Event $event) { $this->viewBuilder()->theme('AdminLTE'); }
Enable Form
// src/View/AppView.php public function initialize() { $this->loadHelper('Form', ['className' => 'AdminLTE.Form']); }
Bake
bin/cake bake model all -t AdminLTE
bin/cake bake controller all -t AdminLTE --actions index,indexAjax,add,edit,delete
bin/cake bake template all -t AdminLTE
Menu generator
Use after bake. Generate a sidebar menu from database table names.
bin/cake menu_generator
Elements
src/Template/Plugin/AdminLTE/Element/nav-top.ctp
src/Template/Plugin/AdminLTE/Element/aside-main-sidebar.ctp
src/Template/Plugin/AdminLTE/Element/aside/user-panel.ctp
src/Template/Plugin/AdminLTE/Element/aside/form.ctp
src/Template/Plugin/AdminLTE/Element/aside/sidebar-menu.ctp
src/Template/Plugin/AdminLTE/Element/aside-control-sidebar.ctp
src/Template/Plugin/AdminLTE/Element/footer.ctp
Page debug
Added link to default page of CakePHP.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request