Hey!
Is there a way to get the html string from a view using the actionStack ? I
mean, I have this in an action:
$this->_helper->actionStack( "brownBox", null, null, array( "arrCategoryInfo"
=> $this->view->arrCategoryInfo ) );
How to get the html string from that action ("brownBox") ?
Thx.
----- Original Message -----
From: "Tobias Gies" <[EMAIL PROTECTED]>
To: "Juan Felipe Alavarez Saldarriaga" <[EMAIL PROTECTED]>, "Zend Framework
General" <[email protected]>
Sent: Saturday, February 23, 2008 1:03:41 PM (GMT-0500) America/Bogota
Subject: Re: [fw-general] How to render multiple action views ?
Hello Juan,
Yes, the actionStack helper and Front Controller Plugin currently
exist in SVN and the 1.5 Preview Release. The documentation for the
ActionStack-Helper (and a link to the docs for the ActionStack-Plugin)
can be found here:
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.actionstack
Regards
Tobias
On Fri, Feb 22, 2008 at 11:27 PM, Juan Felipe Alavarez Saldarriaga
<[EMAIL PROTECTED]> wrote:
> Hey Tobias!
>
> Is on the SVN or something ? I can't find it on the API doc, there's some doc
> that you can show me or give me the link ?
>
> Thx.
>
> ----- Mensaje original -----
> De: "Tobias Gies" <[EMAIL PROTECTED]>
> Para: "Zend Framework General" <[email protected]>
> Enviados: viernes 22 de febrero de 2008 04:59:32 PM (GMT-0500) America/Bogota
> Asunto: Re: [fw-general] How to render multiple action views ?
>
>
>
>
>
> 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.
>
>