Thursday, April 19, 2012

Re: Fix for error Fatal error: Class 'Debugger' not found in ... for php 5.4

which doesnt mean you shoudn't address the problem at some time in the future, though :)
it is always a good thing to make your code E_STRICT compliant - at least partly


Am Donnerstag, 19. April 2012 01:07:20 UTC+2 schrieb rvcT:
u r right , thanks for ur correction , i am still beginner
changing error type to   E_ALL & ~E_DEPRECATED & ~E_STRICT will also disable the error

On Wednesday, April 18, 2012 2:57:10 PM UTC-7, euromark wrote:
as far as I know this is a "strict" issue and not related to a specific php version
if you disable strict mode in your core.php you shouldnt get any such notices regardless if you are using 5.4 or 5.3
correct me if I'm wrong

but yes, some code examples might be outdated
the documentation can be forked and edited, though.
I would help, too, but my time is limited at the moment unfortunately


Am Mittwoch, 18. April 2012 17:01:55 UTC+2 schrieb rvcT:
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: