Plugin communication is typically pretty simple. Here's one example that
might get you started...
// In my Users Plugin, which I want to relate to my Galleries Plugin
var $hasMany = array(
'Gallery' => array(
'className' => 'Galleries.Gallery',
'foreignKey' => 'foreign_key',
'dependent' => true,
),
);
^^^ Galleries is the name of the plugin, and Gallery is the model within
that plugin.
// You might also do plugin to non-plugin communication, or non-plugin to
non-plugin, if say the Gallery model is in /app/Model/Gallery.php
var $hasMany = array(
'Gallery' => array(
'className' => 'Gallery',
'foreignKey' => 'foreign_key',
'dependent' => true,
),
);
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php