JulesBern / CakePHP-Admin-Plugin

A CakePHP Plugin for sexier admin scaffolding using Twitter Bootstrap

Home Page:http://pollenizer.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CakePHP Admin Plugin

A CakePHP Plugin for sexier admin scaffolding using Twitter Bootstrap.

Installation

  1. Copy the plugin to app/Plugin/Admin
  2. Enable the plugin in app/Config/bootstrap.php
CakePlugin::loadAll(array(
    'Admin' => array(
        'bootstrap' => true
    )
));

Usage

  1. Go to http://example.com/admin where example.com is the URL of your website
  2. The main navigation is built "automagically" from the models in app/Model
  3. Start administering

Authorization

In order to control access to Admin actions, the plugin supports a adminIsAuthorized() callback function. Use of the caalback is not required and, by default, access to all actions is unrestricted.

To use the adminIsAuthorized() callback function:

  1. Create the adminIsAuthorized() function in app/Config/bootstrap.php
  2. return boolean true to allow access or boolean false to deny access
function adminIsAuthorized()
{
    if (the user is authorized) {
        return true;
    }
    return false;
}

About

A CakePHP Plugin for sexier admin scaffolding using Twitter Bootstrap

http://pollenizer.com/


Languages

Language:PHP 100.0%