qobo / cakephp-qobo-admin-panel
QoboAdminPanel plugin for CakePHP
Installs: 3 554
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 20
Forks: 0
Open Issues: 0
Language:JavaScript
Type:cakephp-plugin
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
- qobo/cakephp-menu: ^2.0
Requires (Dev)
- cakephp/cakephp-codesniffer: dev-master
- phpunit/phpunit: ~4.3
This package is auto-updated.
Last update: 2023-04-08 19:36:10 UTC
README
The plugin comes with one layout which is based on Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (https://github.com/BlackrockDigital/startbootstrap-sb-admin-2).
Setup
Install plugin
composer require qobo/cakephp-qobo-admin-panel
Load plugin
bin/cake plugin load QoboAdminPanel
Requirements
Load the the required plugins in your application.
Plugin::load('Menu', ['bootstrap' => true]); Plugin::load('BootstrapUI');
AppView should look like the following:
namespace App\View; use BootstrapUI\View\UIView; class AppView extends UIView { //Loads Admin panel layout public $layout = 'QoboAdminPanel.basic'; public function initialize() { parent::initialize(); //Loads the helper for building Menus $this->loadHelper('Menu.Menu'); } }
Examples
Examples can be found here.
Configurations
Update logo URL
Configure::write(['Admin.panel.url' => '/admin']);
Datepicker
The theme comes with datepicker JS library which is wrapped in an element. You can use it as follows:
<?= $this->element('QoboAdminPanel.datepicker', ['options' => ['fieldName' => 'foobar']]); ?>
All options are:
- fieldName
- description: name of the field
- default value:
null
- icon
- description: glyphicon name
- default: calendar
- type
- description: timepicker, datepicker, and datetimepicker.
- default: datepicker
ToDos
- Add test cases
- Move assets files to package manager
License
GPLv2