hecsedli/cakephp3adminlte

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

Installs: 337

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 111

Language:JavaScript

Type:cakephp-plugin

1.0.20 2020-03-19 09:34 UTC

README

Installation

You can install using composer.

composer require hecsedli/cakephp3adminlte

Enable Plugin

// config/bootstrap.php

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

Enable theme

// src/Controller/AppController.php

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

Enable Form

// src/View/AppView.php

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

Bake

bin/cake bake model all -t AdminLTE

bin/cake bake controller all -t AdminLTE --actions index,indexAjax,add,edit,delete

bin/cake bake template all -t AdminLTE

Menu generator

Use after bake. Generate a sidebar menu from database table names.

bin/cake menu_generator

Elements

Dashboard

  1. src/Template/Plugin/AdminLTE/Element/nav-top.ctp
  2. src/Template/Plugin/AdminLTE/Element/aside-main-sidebar.ctp
  3. src/Template/Plugin/AdminLTE/Element/aside/user-panel.ctp
  4. src/Template/Plugin/AdminLTE/Element/aside/form.ctp
  5. src/Template/Plugin/AdminLTE/Element/aside/sidebar-menu.ctp
  6. src/Template/Plugin/AdminLTE/Element/aside-control-sidebar.ctp
  7. src/Template/Plugin/AdminLTE/Element/footer.ctp

Page debug

Added link to default page of CakePHP.

Page debug

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