Skip to content

CakePHP 3.x AdminLTE Theme. Based on maiconpinto/cakephp-adminlte-theme.

Notifications You must be signed in to change notification settings

dejwCake/admin-lte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stories in Ready

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'
]);

About

CakePHP 3.x AdminLTE Theme. Based on maiconpinto/cakephp-adminlte-theme.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published