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:
Use Zend Framework Modules and Save Development Time
December 23, 2013 @ 12:09:26

On his MaltBlue blog Matthew Setter has a new post looking at using Zend Framework modules to save time and make for more reusable, flexible code.

One of the standout concepts in Zend Framework 2 is that it's based on modules. Just about everything is one, and by designing it that way, it's overcome one of the key failings of Zend Framework 1. In version 1, if you're familiar with it, to reuse code across multiple projects wasn't easy - it wasn't easy at all. There was the inevitable problem of running into code duplication and too high a level of coupling. In version 2 - that's history!

In a previous article he looked at how these modules work, but in this latest one he digs in and gets into an actual example you can poke around in. He shows you how to install his sample Google Analytics module and get it set up in your ZF-based project. It drops in the Google Analytics Javascript tracking code at the bottom of the site, using the ID you provided during configuration.

0 comments voice your opinion now!
zendframework2 modules googleanalytics

Link: http://www.maltblue.com/tutorial/intermediate/use-zend-framework-modules-save-development-time

blog comments powered by Disqus

Similar Posts

Jurian Sluiman: Using Zend Framework service managers in your application

Zend.com: Zend Framework 2.0 Beta 3 Release Gives Developers an Early Start

MaltBlue.com: Zend\Db\Sql\Select - The Basics (Columns, Limit & Order)

Adam Culp: Zend Framework 2 XML Sitemap

Reese Wilson: Using the ServiceManager as an Inversion of Control Container (Part 1)


Community Events





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


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

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