On Tuesday, 17 July 2012 12:59:59 UTC+2, Bharat Maheshwari wrote:
>
> Not a big issue you can simply use requestaction just like in a cpt file
>
> Suppose you have a function in *user controller* named : - *
> getUserDetail($user_id)*
>
> and now you want to use this function in post controller
> then simply write
>
> *$userDetail=$this->requestaction('/users/getUserDetail/'.$userId);*
That is a great example of misusing request Action instead of putting the
logic in a method in your user model - and calling it directly.
AD
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php