MichiganRon
MIS
In the past, I would just echo my HTML within my PHP code. I am a bit wiser now and have learned that this is very inefficient for a number of reasons. Lately I've been exploring different ways of separating my HTML from my PHP code. I tried Smarty ( but didn't care much for it. So, I'm now searching for suggestions on how others separate their HTML & PHP.
I know it's usually a matter of personal preference & style, but I was wondering if you'd be willing to share how you perform the separation. Do you use a "out of the box" template system? Or, do you have a system of include files? Or, perhaps you code everything in "Object Oriented" fashion? What are the advantages & disadvantages to these different approaches? Which is most efficient from a coding standpoint (using a separate designer & developer) & which is most efficient from a server process point of view?
Thanks a bunch!
-Ron
We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me
murof siht edisni kcuts m'I - PLEH
I know it's usually a matter of personal preference & style, but I was wondering if you'd be willing to share how you perform the separation. Do you use a "out of the box" template system? Or, do you have a system of include files? Or, perhaps you code everything in "Object Oriented" fashion? What are the advantages & disadvantages to these different approaches? Which is most efficient from a coding standpoint (using a separate designer & developer) & which is most efficient from a server process point of view?
Thanks a bunch!
-Ron
We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me
murof siht edisni kcuts m'I - PLEH