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 2
Aug 20, 2012 @ 14:13:36

In this new post to PHPMaster.com they continue their look at aspect-oriented programming with CodeIgniter. In part one they introduced some of the fundamentals of AOP and in this new article, they dig deeper with more practical examples.

In the previous part of this series we learned what Aspect Oriented Programming (AOP) is and the meaning of important AOP terminology. In this part I’ll explain why we need AOP using practical examples and how to add AOP behavior to your PHP application using the CodeIgniter framework.

They start with a look at a few pieces of functionality that could cut across multiple parts of the application like logging or authentication/authorization. They show how to use the "hooks" feature of CodeIgniter to implement the AOP proxy class generation, executing pre- and post-controller.

tagged: aspectoriented programming tutorial codeigniter framework practical

Link:


Trending Topics: