PHP
  Home arrow PHP arrow PHPLib Templates
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

PHPLib Templates
By: Benjamin D. Smith
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 20
    2001-02-28

    Table of Contents:
  • PHPLib Templates
  • Simplify
  • Home is where the heart is
  • Let's get started
  • Dealing with blocks
  • Nested blocks...
  • Aren't we done YET?
  • Closing

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    PHPLib Templates


    (Page 1 of 8 )

    Hopefully, you've read Mr David Orr's introduction to working with PHPLIB templates. If you haven't, I recommend that you do so.
    (http://www.phpbuilder.com/columns/david20000512.php3)

    The most common use of templates is to allow you to change the look and feel of a site quickly without having to delve immediately into alot of PHP variable assignments and print statements.

    And it's true that templates allow you to decouple your PHP code and the presentation HTML that's used to display its results but to limit PHPLIB templates to just this mundane chore would be a terrible disservice.

    Used properly, 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.


    There is usually an argument here about whether FastTemplates is really fast, or faster than PHPLIB, and which is better, etc.

    I find that PHPLIB templates are more flexible than FastTemplate, don't require that you break nested blocks out into multiple files, and I don't really worry about performance that much, though I've been told that PHPLIB is also supposed to be faster, despite the other's name 'FastTemplate'.

    This can almost get religeous, like arguing about using BSD vs Linux, or MySQL vs PostgreSQL, and I really don't want to get into that. Try both, and use the one you prefer:
    FastTemplates http://www.thewebmasters.net/

    Hopefully, in either event, this article will be useful to you =)

    More PHP Articles
    More By Benjamin D. Smith


     

       

    PHP ARTICLES

    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview
    - Handling Attachments in MIME Email with PHP
    - Completing the Project Management Application





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway