Hey Juan,
If you use the 1.5 Version, you can try the ActionStack-Helper.
Regards
Tobias
On Fri, Feb 22, 2008 at 10:08 PM, Juan Felipe Alavarez Saldarriaga <
[EMAIL PROTECTED]> wrote:
> hey! :)
>
> Question, I'm trying to do this, I'm on a controller action and inside
> this action I want to execute another one and then get the rendered html, is
> that possible ? I'm doing something like:
>
> public function myAction()
> {
> // Execute another action using _forward method.
> $this->_forward( "anotherMy", "anotherController", "anotherModule",
> array( "id" => $this->getRequest()->getParam( "id" ) ) );
>
> // Get the current response.
> $this->view->strAnotherMyBody = $this->getResponse()->getBody();
>
> // Render current view, my/my.phtml
> $this->render();
> }
>
> What's the best practice ?
>
> Thx for any help.
>