News Feed
Sections




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

Rob Allen's Blog:
Simple Zend_Layout Example
December 12, 2007 @ 12:01:00

Rob Allen has posted a simple example of the Zend_Layout component (since it's in the trunk now) both with a screenshot of the output and the method to set it up.

This example consists of three view files: the outer layout file, the index action view script and a right hand side bar. The remainder of this post describes the key files. If you just want to poke around with the code, then it's at the bottom, so page down now!

He defines the directory layout, sets up his bootstrap file and creates the parts that do the work - the controller and the two-step view layer (with the "inner" scripts that output the information and the layout itself the content fits into).

0 comments voice your opinion now!
screenshot zendlayout zendframework example component screenshot zendlayout zendframework example component


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: A Simple Resource Injector for ZF Action Controllers

Zend Developer Zone: Using Zend_Feed to Merge Multiple RSS Feeds

In Coding: Laravel 4 Authentication A Comprehensive Tutorial

Tibo Beijen's Blog: DDD using Doctrine 2: A case study

Pádraic Brady's Blog: Zend_Yaml Proposal added


Community Events

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


api application install configure community release php7 interview framework composer introduction example symfony2 performance library conference opinion laravel series podcast

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