[FLOW3-general] Same variable in every template

Martin Lipp martin.lipp at gmail.com
Mon Feb 27 18:20:47 CET 2012


On 27.02.12 18:04, "Christian Müller (FLOW3 Team)" wrote:
> 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

Thank you, that's what I was looking for...

Greetings,
Martin


More information about the FLOW3-general mailing list