[TYPO3-ect] function castList remove from lib ?

Elmar Hinz elmar07 at googlemail.com
Wed Dec 12 18:23:12 CET 2007


> 
> Always new idea... :) Where did you get all this inspiration ? (Alone ? in
> other frameworks ? Springs, CakePHP ?)

In the momement I rather remove those ideas, that didn't prove to be useful
enough. :-)

> 
> So, the formator object will replace (? or complete) the traditional
> $this->printAsHtml('key') that we had in the template.

Yes, formator and renderer will be separated for at least 3 reasons:

1.) There was to much functionality in the view object, it was difficult
even for me to keep the overview.

2.) I like to have the option to format first and then to use different
renderer (smarty, php, etc.) with the same stuff.

3.) To make it easy to implement renderers for other template engines.


You can still simulate the old style in PHP templates if you like:

<?php $F = new tx_lib_formator(); ?>
<p>Event Begin: <?=$F->transDateTime($this['eventBegin']); ?></p>

That's even possible with Smarty in a similar way.

Cheers

Elmar











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