#103 ✓hold
nx2zdk (at gmail)

Object of class <Controller> could not be converted to string

Reported by nx2zdk (at gmail) | July 30th, 2009 @ 11:48 PM | in 0.20

When trying to return Response Object.
Then controller raises:

  Object of class WelcomeHomeController could not be converted to string

In Controller.class.php file, error exists at line 197

  $response->data['controller'] = $this;

I did a quick fix by

    if(is_string($response->data)) $response->data = "";

$response-&gt;data['controller'] = $this;</code>



Any idea why? and how to do better fix?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Recess PHP Framework is an open source, full stack, RESTful PHP framework.

http://www.recessframework.org/

People watching this ticket

Pages