News Feed
Sections




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

Matthew Weier O'Phinney's Blog:
Getting started writing ZF2 modules
November 08, 2011 @ 10:41:09

Matthew Weier O'Phinney has posted a guide to modules in ZF2 - some helpful hints to get you started writing modules for the Zend Framework 2 to fit into the new architecture.

During ZendCon this year, we released 2.0.0beta1 of Zend Framework. The key story in the release is the creation of a new MVC layer, and to sweeten the story, the addition of a modular application architecture. "Modular? What's that mean?" For ZF2, "modular" means that your application is built of one or more "modules". In a lexicon agreed upon during our IRC meetings, a module is a collection of code and other files that solves a specific atomic problem of the application or website.

He starts with a definition of a module as a reusable, self-contained object that can contain the code for one functional piece of the application (like a "forum" module or "blog" module). He gets more technical with a code-level module example structure and example code for setting up a "blog" module with autoloading and a little ACL. He includes the code you'll need to tell the module manager about the module and a few helpful tips/tricks he's found along the way.

0 comments voice your opinion now!
introduction zf2 zendframework2 module tutorial


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Create a Poll with PHPixie

Alan Knowles' Blog: Getting Started with HTML_FlexyFramework, DataObjects and HTML_Template_Flexy

PHPBuilder.com: Handling Hierarchical Data in MySQL and PHP

David Coallier's Blog: Namespaces has PHP 5.3 (Or the other way around)

NetTuts.com: Integrating Zendesk With WordPress


Community Events





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


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

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