jbennecker / cakephp-admin-theme
Minimalistic Admin Theme for CakePHP
Installs: 167
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: ^7.4 || ^8.0
- cakephp/cakephp: ^4.0
- cakephp/plugin-installer: *
README
Installation
composer require jbennecker/cakephp-admin-theme
bin/cake plugin load AdminTheme
Create config/admin_theme.php
<?php return [ 'AdminTheme.title' => '', 'AdminTheme.controllers' => [ [], ], ];
Set theme e.g in AppController::beforeRender()
if ($this->getRequest()->getParam('prefix') === 'Admin') { $this->viewBuilder()->setTheme('AdminTheme'); }
ViewBlocks
There are two ViewBlocks
<?= $this->fetch('css'); ?>
<?= $this->fetch('script') ?>