Article:
 |
|
The Dynamic Duo of PEAR::DB and Smarty
|
| Subject: |
|
This is not separating logic from presentation |
| Date: |
|
2003-04-22 22:22:07 |
| From: |
|
anonymous2
|
|
|
|
When you still have logic expressions in the HTML, this is not separating logic from presentation.
If you ask most HTML designers that do not understand your HTML templates because they still have programming logic in them.
This is a thing that usually developers that work alone have like the article author do not understand because they are used to do both the programming and the presentation design.
|
Showing messages 1 through 9 of 9.
-
This is not separating logic from presentation
2003-04-23 19:59:26
jcpm
[View]
-
This is not separating logic from presentation
2003-04-25 00:55:18
anonymous2
[View]
-
This is not separating logic from presentation
2003-07-29 02:26:04
anonymous2
[View]
-
This is not separating logic from presentation
2003-04-23 10:09:22
anonymous2
[View]
-
This is not separating logic from presentation
2003-04-23 17:18:23
anonymous2
[View]
-
This is not separating logic from presentation
2003-05-06 04:32:20
anonymous2
[View]
-
This is not separating logic from presentation
2003-04-24 09:14:15
anonymous2
[View]
-
This is not separating logic from presentation
2003-06-05 12:40:35
anonymous2
[View]
-
This is not separating logic from presentation
2003-07-10 00:18:36
anonymous2
[View]
From personal experience, having presentation logic in the PHP code eventually gets confusing and messy. Why should I have to loop through blocks as it is done in PHPLIB just to set a placeholder to have the color #CCCCCC or #999999.
But most of all, this is personal opinion. Templating systems should be chosen by what you feel comfortable using, and some people may prefer Smarty and some people may prefer PHPLIB or some other system.
Cheers,
Joao Prado Maia