Saturday, August 4, 2012

Undefined property: CakeRoute::$response

ControllerTestCase/TestSuite is throwing a PHP error because Router::currentRoute()->response is not defined on TestSuite.php line 250.  This is encountered in a branch taken because $request->params['controller'] is not set.  So I think that this may be the root of the problem but I'm not sure.  I've been digging in the bowels of Router.php, in particular setRequestInfo(), but have not been able to figure out why params['controller'] is not set or remains NULL.

Has anyone else encountered this problem while running a TestCase in CakePHP 2.2.1?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate