qobo/cakephp-qobo-admin-panel

QoboAdminPanel plugin for CakePHP

Installs: 3 521

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 12

Forks: 0

Open Issues: 0

Language:JavaScript

Type:cakephp-plugin

v2.3.4 2016-12-07 22:07 UTC

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License codecov

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

  1. Add test cases
  2. Move assets files to package manager

License

GPLv2