| Article: |
Modular PHP Development with FastTemplate | |
| Subject: | neverer seen the point of templates | |
| Date: | 2003-10-03 06:14:27 | |
| From: | anonymous2 | |
|
Modular PHP dev is ok , but why you need FastTemplate or Smarty or whatever template system ?! OOP slows php down and u're using a tank to kill a fly . my opinion |
||
Showing messages 1 through 5 of 5.
-
neverer seen the point of templates
2007-07-24 11:21:08 W3prodigy [View]
-
neverer seen the point of templates
2003-10-10 01:34:37 tychay [View]
How do you propose to do modular design without a templating system? While I only skimmed the article, it seems the author has it "right on." If you ever had to work with designers before, you'll immediately see the benefits for non-intrusive templating languages like FastTemplate, SmartTemplate, etc. over raw PHP.
If you have the luxury of not having to work with any designers then there is no need to separate "the PHP code" from the templates... no need for modularity.
In other words, like all OOP design, templating gives you the flexibility in a certain direction. If you don't need that flexibility, you don't need templating.
BTW, OOP does not slow PHP4 down significantly more than an associative array and a bunch of functions, because that's how PHP4 treats it (much to the headache of a lot of PHP programmers I might add). Of course, things will be even more optimized with PHP5.
Take care,
terry chay
-
neverer seen the point of templates
2003-10-06 22:44:06 anonymous2 [View]
It's been well noted on the PHP lists that OOP does not slow down PHP in any significant way. I've seen OOP scale quite well on a site with 30M hits a month.
BEWARE OF THE FUD ...
-
neverer seen the point of templates
2003-10-05 11:57:39 dsolin [View]
Hello,
Hmm... I'm not quite sure what you mean here. How do you mean we (easily) could accomplish the same modular design without using some kind of template system? If you got a better solution, we would all love to see it.
Best wishes,
Daniel -
neverer seen the point of templates
2003-12-28 14:36:39 anonymous2 [View]
Me neither :D That is why I now use PHPs DOMXML extension to dynamically build a page as and when it is required :)
Works like a dream in the design of Model View Controller archetechture folks...



OOP is very portable, at least that's why I use it.