Skip to content

web - zend framework 2 released - php

Finally, the Zend Framework 2 is released. Thank you Team around Mr. Phinney, it was a joy to talk or read with you via irc (the new channel is now the old one called "#zftalk"). For the Zend Framework 1 Users, a lot of Singletons are gone (good bless this move). The new magic number two also simplifies the creation and usage of modules. Hopefully there will exist a garden full of lovely plugins and modules out there. If you want to take a look, try to read something about "Dependency Injection" and "EventManager" before. Zend Framework 1 should be supported for 12 or 24 months and a migration howto should be out there very soon. I'm very happy the framework is out since it was already a joy to work with the beta's (formally known as alphas ;-)) and of course learn all the new concepts. source

web - Zend Framework 2.0.0beta3 Released!

The Zend Framework community is pleased to announce the immediate availability of Zend Framework 2.0.0beta3. Packages and installation instructions are available at: http://packages.zendframework.com/ [...] Featured components and functionality of 2.0.0beta3 include:
Refactored Config component All configuration readers have been moved under the Zend\Config\Reader namespace A Zend\Config\Factory has been added to simplify retrieving a config object from a config file Supported configuration formats now support importing additional configuration files All constant processing has been moved to a Zend\Config\Processor namespace, and expanded to be more powerful Work was provided by Ben Scholzen, Artur Bodera, Enrico Zimuel, and Evan Coury
New View layer New subcomponents include Zend\View\Model, Zend\View\Resolver, Zend\View\Renderer, and Zend\View\Strategy The old Zend_View class has been moved to Zend\View\Renderer\PhpRenderer, and rewritten to move most of its responsibilities into collaborators, greatly simplifying its design while simultaneously giving it more capabilities. A new class, Zend\View\View, allows selecting rendering strategies on a per-template basis, based on arbitrary criteria, and optionally injecting rendering results into a Response object MVC integration streamlines common use cases, including View Model creation and injection, 404 and error page creation, and more. Work was provided by Matthew Weier O'Phinney, with copious feedback from Rob Allen. Rewritten DB layer New architecture features low-level drivers, which also provide access to the PHP resource being consumed; adapters, which provide basic abstraction for common CRUD operations; new SQL abstraction layer, with full predicate support; abstraction for ResultSet's, with the ability to cast rows to specific object types; abstraction for SQL metadata; and a revised Table and Row Data Gateway. Work was provided by Ralph Schindler
New AgileZen component Support for the full AgileZen API Developed for use with our planning board Work was provided by Enrico Zimuel
PHP 5.4 Support A number of issues when running ZF2 under PHP 5.4 were identified and corrected.
source

I am happy the team managed to finished the view layer, the database support and the config :-D.

Howto - lambda, anonymous functions (or closures) and aspect oriented programming

What a day, while trying to concentrate on task "digging in into Zend Framework 2" (and this task isn't that easy when manufacturers are setting up a drywall near your desk), i found some exiting pages about "anonymous / lambda functions" and "aspect oriented programming".

Lambda, anonymous function or so called closures are functions that are created "on the fly" are available since php 5.3. Since the upcomming zend framework 2 is using them as often as he can, you have to deal with them - so why not take some minutes and learn about them? Nice to have, php.net have a howto about them. But i found an even better "how to" on the web. This how to is written by Fabien Potencier and after reading and trying you are feeling much more comfortable by using them.

Last but not least, when i try to understand the event mechanism in the framework, there was the name "Aspect Oriented Programming". Also for this, another webpage can help you to understand what it is all about, try this blog entry.