News Feed
Sections




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

NetTuts.com:
Aspect-Oriented Programming in PHP
May 11, 2012 @ 09:34:18

On the NetTuts.com (Plus) site there's a new tutorial focusing on aspect-oriented programming in PHP, a shift from the usual methods of development with the goal of "crosscutting" your classes/objects by weaving in extra functionality. Their examples of this method use the FLOW3 framework.

All modern frameworks (including FLOW3) push a lot of patterns into the software stack that do a great job at separating the concerns of your business logic; among them the famous MVC that is separating your logic into different layers. However, an application is not only built on business logic alone. As it grows, you may want to implement additional services, features, plugins or plugins of plugins. You surely don't want this stuff in your business logic! But what are your options?

For their example, they show how to implement a logger across your classes, taking it out of the actual code and implementing it in an aspect (at the "pointcut") by "weaving" it into a DocBlock comment with special annotations. They help you get the FLOW3 framework set up and show you how to "kickstart" a new project and work with its controllers and resources. They show you how to implement the Logging aspect and how to define it in your code (and where it caches the requests).

0 comments voice your opinion now!
aspect oriented programming tutorial typo3 flow3


blog comments powered by Disqus

Similar Posts

Till Klampaeckel: Continuous Integration: Automated database setup with Doctrine on Travis-CI

php|architect: Zend Framework - A Practical Tutorial

Chris Hartjes' Blog: Converting Legacy Apps to CakePHP, Part 1

WorkingSoftware.com.au: Configuring PHP4 and PHP5 to run concurrently on FreeBSD

SitePoint.com: How to Add OAuth Authentication to Your Twitter App


Community Events

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


extension release unittest conference community framework laravel laravel5 interview api wordpress language introduction voicesoftheelephpant development podcast opinion library middleware series

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