News Feed
Sections




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

MaltBlue.com:
Zend Framework 2 Event Manager - A Gentle Introduction
January 15, 2013 @ 13:19:50

Matthew Setter has a new post to his site for those wanting to take their first steps into Zend Framework 2. In it, he gives a gentle introduction to the Event Manager part of the framework - what its role is and how to customize it to your needs.

Enjoying the introduction to Zend Framework 2? I hope so. In part one of the series, we looked at Dependency Injection, otherwise know as the Inversion of Control principle. Then, in part two, we looked at Modules and the ModuleManager, the next key aspects. In this part, we started to work through what they are and stepped through how to build one from scratch; along with some pointers for taking them further. In this, the 3rd of 4 parts, I'm taking you through the next key aspect of the framework - the EventManager.

He starts with a graphic showing its overall functionality - an implementation of the Observer design pattern - and a general description of its goal (basically, execute code when actions are triggered). He talks about its implementation of aspect oriented programming and its event-driven architecture. Then he gets into some code-based examples: checking a query parameter on a dispatched request and logging form data before and after validation.

0 comments voice your opinion now!
zendframework2 event manager introduction tutorial


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Amazon DynamoDB: Store PHP Sessions with Load Balancer

Matthieu Napoli: Test against the lowest Composer dependencies on Travis

Community News: PHPFreaks Relaunch

Zend Developer Zone: Paging and Sorting Data with Zend Framework, Doctrine and PEAR (part 2)

PHPBuilder.com: An Early Look at Zend Framework 2.0


Community Events

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


symfony yii2 community programming language list project part2 interview php7 api laravel example application opinion framework podcast series introduction composer

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