It is a php syntax issue. When you declare a class attribute, its value must be constant, i.e
class Foo { var $foo = Array('equalTo' => 'xx', 'name' => yy); //correct, since all array's elements are constant var $bar = Array('equalTo' => Conf::read('Secret')); //Error, since the value its not constant } The solution is to set the attribute in the class constructor class Foo { var $bar = Array(); //declare the attribute function __construct() { $this->bar['equalTo'] = Conf::read('Secret'); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---