-
Notifications
You must be signed in to change notification settings - Fork 34
Plugin Creation Tips & Specifications
dotJoel edited this page Apr 4, 2013
·
4 revisions
- All plugins should use the plugin name in the database table name. (For example if you have a plugin called Auctions, you would name the db tables "auctions" and "auction_bids")
- The id field should be varchar(36) and any related _id fields should be varchar(36)
- All tables should include the standard tables "created (null datetime)", "modified (null datetime)", "creator_id (null varchar36)", "modifier_id (null varchar36)". These tables will be auto filled during any save operation.
A schema file for a plugin can be generated using the console command cake zuha_schema generate [PluginName.PluginName]
Currently, running this command will generate /app/Plugin/[PluginName]/Config/Schema/[PluginName].php
, but it will need to be altered.
You must edit the file and remove entries from the Zuha core, so that only entries pertaining to your plugin remain. Also, you must rename the file to schema.php
.