Rob Allen writes; If you need different layout scripts to be rendered for different modules in Zend Framework 2, then Evan Coury has made this extremely easy. His new module EdpModuleLayouts is just the ticket!
Once installed, you simply have to add a new array to a config file in the config/autoload folder with the following in it:
'module_layouts' => array(
'Application' => 'layout/application',
'ZfcUser' => 'layout/user',
i.e. you provide a list of the module name against the layout script to use.
What could be easier?
via Rob Allen’s DevNotes.
The Zend Framework community is pleased to announce the immediate availability of Zend Framework 2.0.0 STABLE! Packages and installation instructions are available at:http://framework.zend.com/downloads/latest
via Zend Framework 2.0.0 STABLE Released! – Zend Framework – Zend Framework.
Gary Hockin writes; After speaking to a prospective employer in a job interview, I was interested to try out the Zend\Mvc\Controller\RestfulController. With Zend_Json_Server in ZF1 having, shall we say, a less than sterling reputation, it was very interesting for me to see how the strategy has been implemented in ZF2.
The starting point for this is simply a completely fresh clone of the ZF2 Skeleton Application. The aim is to simply allow the pre-created index controller to function as a Restful interface.
Read Complete Article.