[Typo3-dev] Better templating: PHP!

Elmar Hinz elmar.hinz at vcd-berlin.de
Mon Sep 19 13:45:40 CEST 2005


>>All the html-er (note: NOT the TYPO3-er) has to do 
>>to test this is create a file like:
>><?php
>>$myHeader = 'blar blar blar';
>>$myMenu = '<ul><li>Page one</li><li>Page two....';
>>$myContent = '<p>this is some content</p>';
>>include('myTemplateFile.php');
>>?>
> 
> 
> This is not HTML, but PHP. So you need not an HTML-er, but an HTML-er 
> with PHP knowledge to test this. This may sound like nitpicking, but the 
> good thing about seperating code and layout is that the "layouter" has 
> absolutly *nothing* to do with any programming language. This basic 
> principle is spoiled by your approach.
> 

Somewhere long ago Kaspar called typo3 is just a framework that is 
extensible by many technics. As far as I remember he especially proposed 
to extend it by any template library of your personal choice ... i.e. smarty

Elmar




More information about the TYPO3-dev mailing list