[TYPO3-ect] as*() functions

Elmar Hinz elmar07 at googlemail.com
Mon Oct 8 02:52:09 CEST 2007


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/

Regards

Elmar





More information about the TYPO3-team-extension-coordination mailing list