2017 © Pedro Peláez
 

cakephp-plugin cakephp3-material-design

CakePHP 3.x Material Design Theme.

image

nos86/cakephp3-material-design

CakePHP 3.x Material Design Theme.

  • Friday, January 5, 2018
  • by nos86
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

cakephp3-MaterialDesign

Installation

You can install using composer., (*1)

composer require nos86/cakephp3-material-design

Enable Plugin

// config/bootstrap.php

Plugin::load('MaterialDesignTheme', ['bootstrap' => true, 'routes' => true]);

Enable theme

// src/Controller/AppController.php

public function beforeRender(Event $event)
{
    $this->viewBuilder()->setTheme('MaterialDesignTheme');
}

Enable Form

// src/View/AppView.php

public function initialize()
{
    $this->loadHelper('Form', ['className' => 'MaterialDesignTheme.Form']);
}

Customize Layout

// 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)

  1. src/Template/Plugin/MDB/Element/nav-top.ctp

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

The Versions

05/01 2018

dev-master

9999999-dev https://github.com/nos86

CakePHP 3.x Material Design Theme.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin cakephp templates