[TYPO3-ect] as*() functions
Daniel Pötzinger
operation-lan at gmx.de
Mon Oct 8 22:30:41 CEST 2007
Elmar Hinz schrieb:
> Daniel Pötzinger wrote:
>
>> But thats not possible now - I am forced by the lib/div framework to
>> build nested views if I want to use it that way. But that is overhead in
>> this case in my opinion.
>>
>> What do you think?
>
> The overhead is often one line of code to convert a nested model into a
> nested view:
>
> $view =
> $model->toObjectOfObjects($yourViewClass, 'tx_lib_phpTemplateEngine');
>
> A little advanced:
>
> http://typo3.org/extensions/repository/view/bananas/0.0.8/info/controllers%252Fclass.tx_bananas_controllers_list.php/
>
Thanks, I am aware of it, but its not possible if you have more than one
list in your view.
And with overhead I mean more the performance issue because of creating
a list of viewobjects each time, where just a simple array is enough.
Greetings
More information about the TYPO3-team-extension-coordination
mailing list