[TYPO3-mvc] ActionController line-Change

Steffen Ritter info at rs-websystems.de
Thu Feb 25 16:06:01 CET 2010


Martin Kutschker schrieb:
> Steffen Ritter schrieb:
>> Hey list,
>> what do you think about moving line 139 of ActionController.php[1]
>> before line 130?
>> This would enable me to "set default" vars, which I need in every View.
>> Currently I have to set $this->view->assign('whatever','myvalue'); in
>> every view itself. 
> 
> You mean you want set variables for all views of the controller? Sounds reasonable to me.
> 
> Masi
yes, that's what I mean. Could be things like:
$this->view->assign('setting',$this->setting['myController']);
$this->view->assign('pluginPIDs',$this->setting['pluginPIDs']);

with result that you could do f.e.:
<f:link.action action="single" pageUid="{pluginPIDs.singleView}" />

currently I have to set the "assign" in every action method again and again.

regards

Steffen


More information about the TYPO3-project-typo3v4mvc mailing list