News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weir O'Phinney's Blog:
Cgiapp2 Tutorial 2 - Pluggable Applications
June 07, 2006 @ 06:17:36

Matthew Weir O'Phinney has created yet another tutorial surrounding the Cgiapp2software and looks this time at something he calls "pluggable applications".

He gives the example of needing a method for creating a well-structured layout in his appication, but also needing a sitewide template to apply to it. Traditional methods don't quite lend themselves to that, so he introduces a new function, cgiapp_postrun, to apply the template after the logic is through.

He includes two examples, one demonstrating the above mentioned situation and the other showing how to make a flexible method for including authentication in only certain parts of the application and not others. Both define a postrun() function to handle the changes to be made after the rest of the logic has finished.

0 comments voice your opinion now!
cgiapp2 tutorial pluggable application sitewide template authentication cgiapp2 tutorial pluggable application sitewide template authentication


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Craft a Webmail interface for PHP applications

Zend Developer Zone: ZendCon Sessions Episode 037: Why MVC is not an Application Architecture

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1

DevShed: Drawing Basic Rectangles in PDF Documents with PHP 5

NETTUTS.com: Organize Your Next PHP Project the Right Way


Community Events





Don't see your event here?
Let us know!


language refactor developer threedevsandamaybe laravel code api framework interview release podcast testing opinion community install unittest series wordpress list introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework