dev-master
9999999-dev https://github.com/nos86CakePHP 3.x Material Design Theme.
MIT
The Requires
- php >=5.4.16
- cakephp/cakephp ~3.0
The Development Requires
plugin cakephp templates
CakePHP 3.x Material Design Theme.
You can install using composer., (*1)
composer require nos86/cakephp3-material-design
// config/bootstrap.php Plugin::load('MaterialDesignTheme', ['bootstrap' => true, 'routes' => true]);
// src/Controller/AppController.php public function beforeRender(Event $event) { $this->viewBuilder()->setTheme('MaterialDesignTheme'); }
// src/View/AppView.php public function initialize() { $this->loadHelper('Form', ['className' => 'MaterialDesignTheme.Form']); }
// src/Controller/AppController.php use Cake\Core\Configure; public function beforeRender(Event $event) { // ... $this->viewBuilder()->setClassName('MaterialDesignTheme.MDB'); }
After you enable the MDBView class in the AppController.php file, you can overwrite any View file, only by creating the Plugin/MDB/
folder inside the Template
folder., (*2)
For example, to overwrite the elements files, you must create them as follows:, (*3)
src/Template/Plugin/MDB/Element/nav-top.ctp
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)CakePHP 3.x Material Design Theme.
MIT
plugin cakephp templates