Home arrow PHP arrow Page 8 - PHPLib Templates

Closing - PHP

PHPLIB templates can grant you an amazing ability to abstract the manipulation of data (in the database as well as in PHP) from its final format, whether that format is HTML, XML, WML, or a formatted e-mail, and some of these ways will be explored here.

  1. PHPLib Templates
  2. Simplify
  3. Home is where the heart is
  4. Let's get started
  5. Dealing with blocks
  6. Nested blocks...
  7. Aren't we done YET?
  8. Closing
By: Benjamin D. Smith
Rating: starstarstarstarstar / 21
February 28, 2001

print this article


Some ideas for using this class:

1) Use a template to to give a site a consistent look and feel. With most sites, you want to have a consistent presentation of links, logos, and other information regardless of what portion of the site they are using. Templating is a drop-dead shoe in.

2) Use templates to allow for rapid and painless rebranding. If you work independantly, you can write your ASP application once, and rebrand the entire site by editing a single template file.

3) Use templates to automatically generate e-mails. This allows you to change your message at any time without diving into code.

4) Use templates for user preferences. A user could change the look and feel of your entire site by choosing the style of his/her choice.

5) Build an XML version of dynamic sites without touching a single bit of PHP code - instead, define a template variable, and use the same block of code with a different template file to generate the HTML or XML version of the site.

And the list goes on...

I hope this has given you some insights on this powerful and useful class.

>>> More PHP Articles          >>> More By Benjamin D. Smith

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: