 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
3 Engineers Blog: 3 Step Layouts in Zend Framework
by Chris Cornutt April 04, 2011 @ 13:04:06
In a recent post to the 3 Engineers blog, they take the usual "Two Step" approach the Zend Framework takes to generating view data (Zend_View + Zend_Layout) and takes it up one more step by using Three Step Layouts with a simple wrapper.
While the Two Step View pattern creates a reasonable paradigm for seperating layout presentation from page presentation, enabling Three-level Inheritance allows for even better separation. In other words, using 3 Step Layouts is a possible and often necessary investment to make when implementing front-ends in Zend Framework projects; they allow fine grain re-usability that provides for a DRYer presentation layer.
They have a three step process you can follow (complete with code snippets) that'll have you working with their 3 layers easily. The wrapper is a sort of "boostrap" for the layout. The nested layout is then pulled into this wrapper (for example's sake, theirs is called "default") and then the view can be served as normal and placed into the content location. There's also a bit of code showing how to switch out the layout if there's ever a need - like different layouts for the admin, user and main parts of your application.
voice your opinion now!
zendframework twostep threestep layout wrapper view zendview zendlayout
Padraic Brady's Blog: An Example Zend Framework Blog - Part 5 Models w/Zend_Db & an Admin Module
by Chris Cornutt May 01, 2008 @ 10:25:06
Padraic Brady is on part five of his series looking at making a blogging tool with the Zend Framework today. This time he focuses on the database side of things, working with models and making an admin module.
First of all I decided to add an Entries Model and Authors Model to the mix, primarily to get ready for when we can add new entries to our blog. This leads to where we can create new Entries; we add an Administration Module to the application with it's own distinct Layout.
He starts by making the database schema, an entries and authors table, before starting in on the models. They're made based off of the Zend_Db component's structure and they let the application interact with the data in the tables easily. His code for the modules is included as well as the controller and view for the admin module.
voice your opinion now!
zendframework model zendb zendlayout controller administration module
Padraic Brady's Blog: ZF Blog App - Part 4 Design with Blueprint CSS & Zend_Layout
by Chris Cornutt April 30, 2008 @ 10:21:43
Padraic Brady has posted part four today detailing his development process for a piece of blogging software with the Zend Framework. This part focuses on the design stage of the application.
In this article we're going to take a stab at setting up a default blog style, using some filler content, and finally capturing the design with a Zend_View template to be consumed by Zend_Layout as a common HTML Layout for the entire future blog.
He uses the Blueprint CSS framework for his projects, a simple system that helps you lay out pages it a bit more sensible fashion without having to worry about the underlying CSS so much. He shows how to integrate the library into his project and gives some sample HTML to style with it. Then, with a little help from the Zend_Layout component, he splits it up into a layout that can be used over the entire website (code included).
voice your opinion now!
zendframework blueprint css zendlayout tutorial design template blog
IBM developerWorks: What's new in Zend Framework V1.5
by Chris Cornutt April 17, 2008 @ 09:33:35
The IBM developerWorks website has a new article/tutorial posted today about the new features and functionality that's included with the latest release of the Zend Framework, version 1.5.
The popular open source Zend Framework just got some slick enhancements. Learn what's new in V1.5 and how upgrades, including Zend_Form, Zend_Layout, and Zend_View, enhanced support for GData Web services, and improved Ajax support can help PHP developers easily roll out cutting-edge Web applications.
They walk through each of the new components (or features in them) like Zend_Form and Zend_Layout/Zend_View with examples included. There's also mention of other miscellaneous updates like the addition of OpenID and InfoCard support, a LDAP authentication module and an interface with Google's GData service.
voice your opinion now!
zendframework new feature component zendform zendlayout zendview
|
Community Events
Don't see your event here? Let us know!
|