Home > PHP > Templates with PHP

Templates with PHP

image167.jpgPHP programmers several times find themselves in very irritating situation when the code gets mixed up with HTML code. It is very complex to handle the mixed up code, specially at the time of customization of web applications. The smart way of getting out of these situations is the use of Templates. By the use of the templates the programmers can separate their PHP code to HTML code. It also makes easier to put conditional checking on the HTML code.

Whatever templates do, PHP can also does the same in far better way. So why we should use templates?

Well, my points to use templates are:

  • to make the code easily readable,
  • to separate the business logic from the UI of the web applications,
  • it seperates code from contents,
  • it makes easy to customize the web application at UI level,
  • also easy to customize the web application by non-PHP programmer.
  • you can cache your templates to improve the performance.

These are my point in favour of templates. All are invited with their smart suggestions.

Advertisements
Categories: PHP
  1. June 6, 2006 at 5:07 am

    Hi Asit,

    Can you explain some basic information about PHP?

    Mayank

  2. ayush
    July 17, 2006 at 3:49 am

    Yaa, it will bw very help full for the people like me who dont know thw abc of PHP.

    So you can help us by telling us the basic step by step procedure to get famililar with the PHP.

    Later you can use the same stuff as a learning of PHP as easy as it can. something like that..

    Thanks 4 your effort..

    Ayush

  3. July 17, 2006 at 5:08 am

    Hey Ayush! nice to see your response. I will try to get back with some basic stuffs regarding PHP. I will be looking some more suggestive comments from your side.
    Thanks.

  4. Ananth
    September 4, 2008 at 9:15 pm

    hey, I use dreamweaver templates (dwt) and integrate my php code into the page that I create, I normally write code in a seperate file and include the file in the page, so that I can maintain transparency between the code and the design. Is this the way you work too? or do you have any other options? btw, The questions that you posted are great! keep it up dude

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: