hi bakers, i'm in trouble with a plugin model that don't get actsAs in the
program flow.
The scenario: model Foo in Moo Plugin. I want use tags plugin
http://cakedc.com/downloads/view/cakephp_tags_plugin.
cake don't catch the actsAs and if i debug the model in the controller (
print_r($Foo); ), the actsAs variable is null!
the code:
class Foo extends MooAppModel
{
var $name = 'PointRoute';
var $actsAs = array(
'Tags.Taggable' => array(
'separator' => ',',
'field' => 'tags',
'tagAlias' => 'Tag',
'tagClass' => 'Tags.Tag',
'taggedClass' => 'Tags.Tagged',
'foreignKey' => 'foreign_key',
'associationForeignKey' => 'tag_id',
'cacheWeight' => true,
'automaticTagging' => true,
'unsetInAfterFind' => false,
'resetBinding' => false)
);
}
thanks!
--
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