SpliceIt! Models
Where do I put my SpliceIt! plugin models?
Well the first thing you have to do is to create a SpliceIt! Plugin, once you've done this you can put your model Post inside app/plugins/my_plugin/models/post.php (Post is a sample name for you new model).
Show me some Code
The code for your new model is similiar to the one used in regular CakePHP. The class you extend is either SpliceItAppModel or [Plugin]AppModel (if you use your own [plugin]_app_model.php):
The Code for creating a new model named Post (using no PluginAppModel):- class Post extends SpliceItAppModel
- {
- var $name = 'Post';
- }
- class Post extends MyPluginAppModel
- {
- var $name = 'Post';
- }
Where to go now?
Now that you are familiar with SpliceIt! Models you might want to learn more about other types of SpliceIt! objects:
Or read about some other features of SpliceIt!:
SpliceIt!-Documenation v0.1 ALPHA (generated on 28.03.2006)