...
Set up a new Plugin in the directory applocal/Plugin/MyPlugin
. You might find it handy to use Cake's bake
command.
Code Block |
---|
$ cd app $ ./Console/cake bake plugin MyPlugin Welcome to CakePHP v2.7.1 Console --------------------------------------------------------------- App : app Path: /home/user/src/comanage/git/registry/app/ --------------------------------------------------------------- 1. /home/user/src/comanage/git/registry/local/Plugin/ 2. /home/user/src/comanage/git/registry/app/Plugin/ 3. /home/user/src/comanage/git/registry/plugins/ Choose a plugin path from the paths above. [1] > 1 |
Note |
---|
Prior to v1.0.0, Plugins must be placed in |
Plugin Model
- Create a Model whose name matches the name of the Plugin. In this example, the Model is created at
app/Plugin/MyPlugin/Model/MyPlugin.php
. Define
$cmPluginType
to indicate the type of the Plugin, from the following options:$cmPluginType
Description
enroller
Enrollment Flow Plugin normalizer
Normalization Plugin
provisioner
Provisioning Plugin
other
Any other type of Plugin
...