[FLOW3-general] Same variable in every template

"Christian Müller (FLOW3 Team)" christian.mueller at typo3.org
Mon Feb 27 18:04:12 CET 2012


On 27/02/12 17:17, Martin Lipp wrote:
> Hi,
>
> i tried this, but assigning variables to templates from the
> initializeAction() seems not to work. I get a blank page (but no errors,
> I'm in dev context) as soon as i add a simple
> $this->view->assign('test', 3); to any initializeAction().
>

Hi,

sorry my bad, initializeAction() is called before the view is set, you 
must use:

protected function initializeView(\TYPO3\FLOW3\MVC\View\ViewInterface $view)

Cheers,
Christian


More information about the FLOW3-general mailing list