Forum Moderators: coopster

Message Too Old, No Replies

PHP site organization

         

orion_rus

11:28 am on Nov 24, 2004 (gmt 0)

10+ Year Member



What's more prefer? to make pages from functions, or make a HTML template and call functions in the needed container?

jatar_k

7:33 pm on Nov 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



As with most things php there are many approaches to templating.

It will depend on the number of templates/layouts needed for the site in question.
It depends on the number of times each piece of code will be used. Use it once it goes in the page, use it twice it goes in a common lib as a function.

I personally prefer to have a template that is fed the content for the given containers.