Monday, October 17, 2011

Re: 2.0 Upgrade Problem (with $controller->request in RequestHandlerComponent)

Yes the constructors changed, I'm pretty sure that was in the
migration guide as well.

http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html#controller

-Mark

On Oct 17, 10:45 am, zuha <rich...@razorit.com> wrote:
> I solved the issue.  In CakePHP 2.0 the AppController::__construct() has new
> variables that you need to pass to the parent __construct().    I updated
> the __construct() function to look like this...
>
> public function __construct($request = null, $response = null) {
> parent::__construct($request, $response);
>                 // my construct logic
>
> }
>
> (Previously the $request, and $response vars weren't there.)

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