This model code using array works:
<?
class Foo extends AppModel {
var $name = 'Foo';
var $actsAs = array(
'Tree' => array(
'parent' => 'ParentID')); } ?>
When I try using wrapper function aa instead, Cake complains "Parse
error: syntax error, unexpected '(', expecting ',' or ';' in foo.php
on line 4":
<?
class Foo extends AppModel {
var $name = 'Foo';
var $actsAs = aa(
'Tree', aa(
'parent', 'ParentID')); } ?>
aa works in my controllers no problem. Is aa not available for use in
Cake models?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en