anselm wrote:

requestAction is a function which allows you to query an action on a
controller with the same syntax as URLs. By default it renders it's
output, but you can make it return the rendered result to you by adding
an extra parameter array('return' => true). For instance to get the
post with id 34 rendered to string do :

$str = $this->requestAction('/posts/view/34', array('return' => true));


Thanks the answers for everybody. This is not an easy way, I thinked about something like in smarty fetch() function. I do not know why there is not same function in cake php?

--
Ámon Tamás
http://linkfelho.amon.hu


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to