An open API service indexing awesome lists of open source software.

https://github.com/brandcom/cakephp-admin-theme

Minimalistic Admin Theme for CakePHP
https://github.com/brandcom/cakephp-admin-theme

Last synced: over 1 year ago
JSON representation

Minimalistic Admin Theme for CakePHP

Awesome Lists containing this project

README

          

# CakePHP Admin Theme

## Installation

```sh
composer require jbennecker/cakephp-admin-theme
```

```sh
bin/cake plugin load AdminTheme
```

Create `config/admin_theme.php`

```php
'',
'AdminTheme.controllers' => [
[],
],
];
```

Set theme e.g in AppController::beforeRender()

```php
if ($this->getRequest()->getParam('prefix') === 'Admin') {
$this->viewBuilder()->setTheme('AdminTheme');
}
```

## ViewBlocks

There are two ViewBlocks

```
= $this->fetch('css'); ?>
```

```
= $this->fetch('script') ?>
```