News Feed
Sections




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

PHPMaster.com:
Explore Aspect Oriented Programming with CodeIgniter, Part 3
August 24, 2012 @ 11:56:29

PHPMaster.com is back with the third part of their series looking at Aspect Oriented Programming with the CodeIgniter framework. (Part 1, Part 2)

In the previous parts of the series we learned about AOP concepts and the need for using AOP in large scale projects and I introduced CodeIgniter's hooks as a convenient mechanism for creating AOP functionality from scratch. In this part I'll show you how to use both XML and comment-based techniques to create custom AOP functionality when a dedicated AOP framework is not available.

They start with the XML configuration that defines a few aspects and pointcuts for the application. This is then read in via the "applyBeforeAspects" and the aspects that should be executed first are extracted, loaded and run. Following this, they take the other approach - based on docblock comments - and pull in the comments (the @before and @after tags) and load/execute the aspects that way instead.

0 comments voice your opinion now!
aop aspectoriented programming tutorial xml docblock configuration


blog comments powered by Disqus

Similar Posts

Pádraic Brady's Blog: XSS in PHP (Part 1): How Not to Use Htmlspecialchars

Sameer Borate's Blog: Downloading Gmail attachments using PHP

ZendCasts.com: Logging in Users using Doctrine and Zend_Auth

Greg Bulmash's Blog: Creating A Simple Rating Script With PHP And MySQL

Mikko Koppanen's Blog: Creating buttons with Imagick


Community Events





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


podcast install version composer package interview release tool introduction voicesoftheelephpant language community series framework library symfony update security opinion laravel

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