|
Posted by Ian M Robertson on 01/24/07 10:38
Erwin Moller wrote:
> Frank van Wensveen wrote:
>
>> Friend, coders, fellow wage slaves, lend my your ears.
>>
>> I believe that in a perfect world the design of a website (or feature
>> on a website) should be totally separated from its design and the data
>> it serves up. I'd like some suggestions on good ways to do this,
>> because in the real world it can be quite difficult.
---SNIP
>
> Hi Frank,
>
> Toby gave a nice response + examplecode.
> I just want to add a fairly simple way to achieve the same: includefiles.
--- SNIP
> Disclaimer: I am not claiming this approach is better than some
> template/parsing engine. It is just another way to approach the subject.
One template engine worth a look is smarty ( http://smarty.php.net ) gives
good separation of source php and markup html
IanR
--
homepage http://narian.org.uk
Navigation:
[Reply to this message]
|