Installation

Composer


Ensure require is present in composer.json. This will install the plugin into Plugin/BsHelpers:

{
  "require":{
      "webandcow/bs_helpers": "*"
  }
}

Enable plugin

You need to enable the plugin in your app/Config/bootstrap.php file:

CakePlugin::load('BsHelpers');


If you are already using CakePlugin::loadAll();, then this is not necessary.

Enable Helpers

Then, add those following lines in your app/Controller/AppController.php file :

<?php

class AppController extends Controller {

  public $helpers = array('BsHelpers.Bs', 'BsHelpers.BsForm');

}


Now you can start using the BsHelper and BsFormHelper!