Setup instructions

First

Create a basic app, you need at least one model with its own database table (or the datasource you use).

Second

Download the plugin and extract it into app/Plugin/Brownie or Plugin/Brownie

Third

Add the component in app/Controller/AppController.php, the code could be something like this:

class AppController extends Controller {
    var $components = array('Session', 'Brownie.BrwPanel');
    /* ... */
}

Fourth

Add the behavior in app/Model/AppModel.php

class AppModel extends Model {
    var $actsAs = array('Containable', 'Brownie.BrwPanel');
    /* ... */
}

Fifth

Create the tables for the models needed for BrowniePHP, you will find it in brownie.sql inside the plugin folder. After executing the SQL you will find 3 tables: brw_users, brw_files and brw_images

Sixth

Add this line to app/Config/bootstrap.php

CakePlugin::load('Brownie', array('bootstrap' => true, 'routes' => true));

Finally

Go to http://www.your-domain.com/brownie and login with any user you want (the username have to be a valid email address). When the table brw_users is empty the first login you make is going to be saved instead of validated.


Next: Requirements