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  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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? 
Google.com  
PHP

PHPLib Templates
By: Benjamin D. Smith
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 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:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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 )

    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.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

    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek