Home arrow PHP arrow PHP MVC Framework: the Cache Class

PHP MVC Framework: the Cache Class

Welcome to the final installment of a series that shows you how to build a simple MVC-based framework in PHP 5. This series walks you in a step-by-step fashion through the development of a stack of reusable components, which can be easily put to work together under a strict MVC-based layer.

TABLE OF CONTENTS:
  1. PHP MVC Framework: the Cache Class
  2. Review: the sample application
  3. Caching database result sets
  4. The user controller class
By: Alejandro Gervasio
Rating: starstarstarstarstar / 2
July 12, 2010

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Learning how to implement the Model-View-Controller design pattern within a real-world project can be of great help in sharpening the skills of any web developer who wants to be in touch with modern software programming trends.

So, if you’re a PHP coder who wants to grasp the key concepts that surround the implementation of this architectural pattern by building a basic, extensible framework, you’ve come to the right place.

Of course, if you’ve been a loyal follower of this series and have read all of the tutorials that precede this one, then you now have a thorough background in how to use the aforementioned MVC framework for building a trivial MySQL-driven application. This application is capable of performing CRUD operations on a database table containing user-related data.

What’s more, in the penultimate chapter I finished building the application by adding to it the pair of view files required to display on screen the list of users stored in the database, and to render an HTML form that collects data on new users.

While the application currently performs quite well, it’s possible to improve it further by enabling it to cache result sets via the cache class that was built in a previous chapter (you remember that class, right?). Therefore, in this last tutorial of the series I’m going to demonstrate how to use the framework’s cache class to improve the performance of this sample application.

Now, let’s tackle this final leg of our educational journey. Let’s get going!



 
 
>>> More PHP Articles          >>> More By Alejandro Gervasio
 

blog comments powered by Disqus
   

PHP ARTICLES

- 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...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap

Dev Shed Tutorial Topics: