2017 © Pedro Peláez
 

cakephp-plugin materialize-theme-cakephp

Materialize plugin for CakePHP

image

jeffersonbehling/materialize-theme-cakephp

Materialize plugin for CakePHP

  • Monday, May 21, 2018
  • by jeffersonbehling
  • Repository
  • 2 Watchers
  • 1 Stars
  • 250 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 18 % Grown

The README.md

Materialize CSS theme default for CakePHP

*************** Em processo de Desenvolvimento ***************

Última atualização 19/05/2018, (*1)

Instalação

Versão recomendada do CakePHP 3.5
composer create-project --prefer-dist cakephp/app=3.5.0 app

Dentro do seu projeto, execute:, (*2)

composer require jeffersonbehling/materialize-theme-cakephp:dev-master

No arquivo config/bootstrap.php adicione:, (*3)

Plugin::load('Materialize', ['bootstrap' => false, 'routes' => false]);

Para definir o Materialize como tema padrão, adicione em config/bootstrap.php, (*4)

Configure::write('Bake.theme', 'Materialize');

Utilização

Se for definir o Materialize como Tema Padrão, apenas precise utilizar, (*5)

bin/cake bake all sua_tabela

Caso contrário, adicione --theme Materialize ao comando bake., (*6)

Exemplo:, (*7)

bin/cake bake all sua_tabela --theme Materialize

Se for gerar apenas o bake para gerar os TEMPLATES, deverá adicionar na sua Controller o seguinte código., (*8)

public function beforeRender(Event $event)
{
    parent::beforeRender($event);
    $this->viewBuilder()->setHelpers(['Materialize.Form']);

    $this->viewBuilder()->layout('Materialize.materialize');
}

The Versions

21/05 2018

dev-master

9999999-dev

Materialize plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

19/05 2018

v1.0.2

1.0.2.0

Materialize plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

07/05 2018

v1.0.1

1.0.1.0

Materialize plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

23/03 2018

v1.0

1.0.0.0

Materialize plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires