alisson-nascimento/cakephp-theme-adminlte

CakePHP 3.x AdminLTE Theme

Installs: 82

Dependents: 0

Suggesters: 2

Security: 0

Stars: 0

Watchers: 1

Forks: 108

Language:JavaScript

Type:cakephp-plugin

1.1.4 2018-11-20 03:06 UTC

This package is auto-updated.

Last update: 2024-02-28 23:25:20 UTC


README

Este projeto é um fork de maiconpinto/cakephp-adminlte-theme

Instalação

Você pode instalar usando o composer.

composer require alisson-nascimento/cakephp-theme-adminlte

Habilitar Plugin

$ bin/cake plugin load AdminLTE

Habilitar Theme

// src/Controller/AppController.php

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

Habilitar Form

// src/View/AppView.php

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

Configuração

// To customize configuration paste it at end of method initialize in src/Controller/AppController.php

Configure::write('Theme', [
    'title' => 'AdminLTE',
    'logo' => [
        'mini' => '<b>A</b>LT',
        'large' => '<b>Admin</b>LTE'
    ],
    'login' => [
        'show_remember' => true,
        'show_register' => true,
        'show_social' => true
    ],
    'folder' => ROOT,
    'skin' => 'blue' // default is 'blue'
]);

Customizar Layout

Customize Layout

Página de debug

Added link to default page of CakePHP.

Page debug