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

Anselm


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