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:
Hot to Use the Zend Form ViewScript Decorator in All Modules
August 09, 2012 @ 08:52:38

On his MaltBlue.com site today, Matt Setter has a new post showing you how to use the Zend_Form ViewScript decorator in your Zend Framework-based application's forms.

If you've been using Zend Forms for any length of time, you'll know just how flexible and configurable they are. [...] We can, as I'm quite fond of, use the ViewScript decorator. This allows us to have nearly 100% control of the configuration of the look and feel of our rendered forms.

The ViewScript decorator lets you have full control over the layout of your form, letting you use a view (file) to define the markup for the form and injecting your elements into it. There is an issue with using the form in other modules though - it can't find the view file by default. The solution is to pass in a viewModule when using the form, showing it where it can find the view.

0 comments voice your opinion now!
zendframework zendform viewscript tutorial decorator


blog comments powered by Disqus

Similar Posts

Stefan Mischook's Blog: PHP Video: the Zend Framework and Web 2.0

David Goodwin's Blog: Using SOAP and XmlRpc with PHP5 (a newbies findings)

Zend Developer Zone: Getting started with CouchDB : meet PHP on Couch

SitePoint PHP Blog: UTF-8 Email in PHP with eZ Components

Stefan Mischook's Blog: Aprenda Programacion Orientada a Objetos en PHP


Community Events





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


language tips community deployment podcast api voicesoftheelephpant library laravel package install symfony series interview framework introduction release bugfix opinion list

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