using cake 2.1.1 + php 5.4
when writing your components callback functions ensure that they have the
same declaration as there parent function in class component for example :
when using function initialize in your component make it's declaration as
public function initialize(Controller $controller) {
}
not "as provided in the cookbook"
public function initialize($controller) {
}
Notice the type of the passed argument $controller is 'Controller'
-
i think it's php 5.4 issue , i hope someone put the notice in docs
--
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