Home arrow MySQL arrow Writing Your Own Template Caching Class In PHP
MYSQL

Writing Your Own Template Caching Class In PHP


Writing your own template caching class with PHP doesn't necessarily mean that you have to invent your own template tags, as Havard shows us in this article...

Author Info:
By: Havard Lindset
Rating: 5 stars5 stars5 stars5 stars5 stars / 13
November 19, 2002
TABLE OF CONTENTS:
  1. · Writing Your Own Template Caching Class In PHP
  2. · How Is It Supposed To Work?
  3. · The Code Explained (contd.)
  4. · The Code Explained (contd.)
  5. · Real-World Examples
  6. · Conclusion

print this article
SEARCH DEVARTICLES

Writing Your Own Template Caching Class In PHP
(Page 1 of 6 )

If you've been involved in web development for a while, then you've probably seen the uprise in popularity of using templates. Templates, at least the way I speak of them, are a way for developers to separate content from their actual programming code. You may have read my article about patTemplate, simple called "Simple PHP Templates With PatTemplate", which I wrote in June. In it, I explained how to use an already existing template engine. This time, I'll be explaining how you can write your very own template class with built-in caching features.

When I first started writing this class, I decided that the templates should use normal PHP as opposed to custom tags -- as the template language. By using normal PHP, we can eliminate the overhead many of the other template engines out there get by using their own template languages and parsers.

In this article I will assume that you have at least a basic understanding of PHP and OOP. Now, let's get down to business and start writing the class...
blog comments powered by Disqus
MYSQL ARTICLES

- MySQL and BLOBs
- Two Lessons in ASP and MySQL
- Lord Of The Strings Part 2
- Lord Of The Strings Part 1
- Importing Data into MySQL with Navicat
- Building a Sustainable Web Site
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- PhpED 3.2 More Features Than You Can Poke ...
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- Security and Sessions in PHP
- Setup Your Personal Reminder System Using PHP
- Create a IP-Country Database Using PERL and ...
- Developing a Dynamic Document Search in PHP ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials