> You don't. However, as I understand, Cake 2.x will have that option.
I see. Thanks for clearing out
If that's the case i want to set up a class saying UserObj so that
easier for me to pass around between Model, View, Contoller and
I can use the autocomplete function of IDE so i don't have to remember
all index name for the array. Where would you put this class so that
this will be auto-loaded?
Using Stephen's example, i would go like this
$user = $this->User->find('first');
$userObj = new UserObj( $user->id );
$userObj -> name = $user['user']['username'];
$userObj -> age = $user['user']['age'];
return $userObj ; //return to controller
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en