dejw-cake/adminlte

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

Installs: 6

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:cakephp-plugin

dev-main 2017-09-23 11:16 UTC

This package is auto-updated.

Last update: 2024-11-21 16:50:26 UTC


README

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