Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 729 Bytes

Install.md

File metadata and controls

35 lines (28 loc) · 729 Bytes

Installation

How to include

Installing the Plugin is pretty much as with every other CakePHP Plugin.

Put the files in ROOT/plugins/PlumSearch, using Packagist/Composer:

"require": {
    "skie/cakephp-search": "dev-master"
}

and

composer update

Details @ https://packagist.org/packages/skie/plum-search

This will load the plugin (within your boostrap file):

Plugin::load('PlumSearch');

or

Plugin::loadAll(...);

Internal handling via plugin dot notation

Internally (method access), you don't use the namespace declaration. The plugin name suffices:

// In a Table
$this->addBehavior('PlumSearch.Filterable');

// In a Controller
public $helpers = ['PlumSearch.Search'];