Forum Moderators: coopster

Message Too Old, No Replies

PHP Template Systems/Classes

A more advance topic for this forum.

         

hiker_jjw

2:12 am on Nov 27, 2005 (gmt 0)



I began a rather complex open source project early this year and have began to re-evaluate some of the code. I've noticed that some PHP/MySQL applications use a Smarty or other template system.

I don't quite see the usefulness / effeciency of using a template system, as PHP is already a template system. Is it because HTML designers can't seem to learn a little PHP code? Is this type of template system used in bigger "corporate" companies? Can anyone help explain this better?

Thanks, Jeff

henry0

12:06 pm on Nov 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Jeff could you explain further:
<<<
PHP is already a template system
>>>

<<<
HTML designers can't seem to learn a little PHP code?
>>>
Above I think you are answering your own question
Developing such a system as Smarty that is world wise recognized takes time and skills
Most HTML users are not programmer by definition, it does not call for a little PHP but for “Fluent” PHP/MySQL
I have scripted my own CMS OO and templates oriented that does quite a lot in a multi users environment
Allows page to be added, published and non published, edited etc.. Plus on the fly each new user get its dedicated img library, the whole thing with admin and limited simple user capability.

I do not see how I could have done it without creating a set of templates that are on the fly called by my classes/engine

Unless you want to be called anytime a client requires a new edit or a little change.
But did I understand your question?