See this template program on Zend.com, look at the structure code is very similar to SmartTemplate, but the reading process is completely different, and the template programs are directly used PHP code, such as the common loop display below. Code:
code segment:
Endforeach;?>>
Foreach ($ BOOK AS $ Key => $ VAL):?> ????
???????
Echo $ VAL ['AUTHOR']?> ???????
Echo $ VAL ['Title']?> ????
I feel that it is also a more flexible and convenient to use this way, and it doesn't need to generate a trick, because it itself is already a PHP program. Plus convenient Plugin and Filter extensions, worth considering, below is this template Details:
Http://pear.php.net/pepr/pepr-proposal-show.php?id=83