PHPackages                             funayaki/adminlte - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. funayaki/adminlte

ActiveCakephp-plugin[Admin Panels](/categories/admin)

funayaki/adminlte
=================

AdminLTE theme for CakePHP

0.0.2(9y ago)01151[2 issues](https://github.com/funayaki/cake-adminlte/issues)GPL-3.0JavaScriptPHP &gt;=5.5.9

Since May 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/funayaki/cake-adminlte)[ Packagist](https://packagist.org/packages/funayaki/adminlte)[ RSS](/packages/funayaki-adminlte/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

AdminLTE theme for CakePHP 3
============================

[](#adminlte-theme-for-cakephp-3)

[![Build status](https://camo.githubusercontent.com/6a469275399315903ca6bea5fd181a2f66e1bc60c5d4fad5e7b57afe1376f705/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66756e6179616b692f63616b652d61646d696e6c74652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/funayaki/cake-adminlte)[![Code coverage](https://camo.githubusercontent.com/802240b554a834daef1dfa326f1fdb79ddaafa0e5465e97c88f47ac060f5a1ff/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f66756e6179616b692f63616b652d61646d696e6c74652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/funayaki/cake-adminlte)[![License](https://camo.githubusercontent.com/d91ad56ab09c27cbeb25e3712fcd4a4321a8d3399ff02cce02fc319bfdec7339/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66756e6179616b692f63616b652d61646d696e6c74652e7376673f7374796c653d666c61742d737175617265)](https://github.com/funayaki/cake-adminlte/blob/master/LICENSE.md)[![Latest stable version](https://camo.githubusercontent.com/a12c2b6c9a5791afe2f8d69462b363398290ee766414d591f5d7f3e567233996/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f66756e6179616b692f63616b652d61646d696e6c74652e7376673f7374796c653d666c61742d737175617265)](https://github.com/funayaki/cake-adminlte/releases)[![Total downloads](https://camo.githubusercontent.com/ac4cb7826522048a0f2c66bcb0958b0722936c05e88f8ecfa75e757343dc954e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66756e6179616b692f61646d696e6c74652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/funayaki/adminlte)[![Code climate](https://camo.githubusercontent.com/6747a3d774d6ef26248afb462f489c7003a39964420c0dad984d9b48aced73af/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f66756e6179616b692f63616b652d61646d696e6c74652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/funayaki/cake-adminlte)

Requirements
------------

[](#requirements)

- cakephp-adminlte-theme()

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require funayaki/adminlte
```

### Installing dependencies

[](#installing-dependencies)

Currently this theme uses [NPM](https://nodejs.org) to install external dependencies such as bootstrap, fontawesome or the AdminLTE itself.

To install all the dependencies, just run (within the plugin folder):

```
npm install && ./node_modules/gulp/bin/gulp.js
```

Configuration
-------------

[](#configuration)

First you need to load the plugin. To do so, edit your `bootstrap.php` file and add line below:

```
Plugin::load('Cirici/AdminLTE', ['bootstrap' => true]);
```

After that, you need to update the app `AppController`:

```
class AppController extends Controller
{

    public $helpers = [
        'Gourmet/KnpMenu.Menu',
        'Breadcrumbs'
    ];

    public function initialize() {
        parent::initialize();

        $this->loadComponent('Gourmet/KnpMenu.Menu');
    }

    /**
     * @param Event $event
     * @return void
     */
    public function beforeRender(Event $event)
    {
        $this->viewBuilder()->setTheme('Cirici/AdminLTE');
    }
}
```

Usage
-----

[](#usage)

First of, take a look to the `bootstrap.php` file to see what can you configure with `Configure`.

To load your custom configurations you can obviously use `Configure::write` where you need, but the recommended way is creating a `adminlte.php` file under your `CONFIG` folder (usually `/config`):

```
