Skip to content

Pollenizer/CakePHP-Admin-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 callback 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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages