-- Ralf Eggert <[email protected]> wrote
(on Friday, 24 August 2012, 02:29 PM +0200):
> Hi again,
>
> actually, I don't get it. My view helper ShowMessages() should be called
> within my layout script. But I have big problems to pass any variable to
> the layout script. I had a look at the Layout Controller Plugin, but
> that did not get me any further. I looked through the reference guide
> but did not find any answer to it.
>
> This leads me to two questions:
>
> How can I pass variables to be accessible within my layout script?
>From your controller:
$this->layout()->var = $value;
> How can I access the variables from the layout script within a view
> helper that is called in this layout script?
$this->view->var
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]