Zend Form Articles

Howto Handle External Form Element Dependencies with FormElementManager

April 22, 2014

Zend Framework 2, like all great PHP frameworks, provides thorough infrastructure for creating forms in your application. Whether that’s form objects, form elements, fieldsets, validation groups or that they interact with so many other components in the Zend Framework 2 default libraries. But how do you handle external dependencies?

Zend Framework 2 - The New HTML5 Form Fields

April 29, 2013

In today’s tutorial come and learn the new HTML5-specific form elements available in Zend Framework 2. You’ll learn how they work, how to use them, what they look like.

Zend Framework 2 Forms - Simple and Available Everywhere

April 4, 2013

In Zend Framework 2, so much has been changed, updated and improved - with Forms receiving a lot of attention. In this post, I show you a simple, flexible and powerful approach to compose and use them everywhere in your applications.

How to Use the Zend Form ViewScript Decorator In All Modules

April 8, 2012

If you’ve been using Zend Forms for any length of time, you’ll know just how flexible and configurable they are. There’s not much that you can’t do with them, But it’s not always easy and there are catches. Today we look at ensuring that module-based Zend Forms using the ViewScript decorator can always be initialised no matter what.

Zend Form Mastery with Zend Config – Part 4 Configuring Zend Validators

April 5, 2012

Welcome to the fourth and final part in the Zend Form Mastery with Zend Config series. Previously we looked at the basic form options, element and form wide prefixes, filters and element options. In this installment, we’re going to look at configuring Zend Validators via our XML config.

Zend Form Mastery with Zend Config – Part 3 Standard Form & Element Options

April 22, 2012

– Part 3 Standard Form & Element Options This is a Multi Part Series. Check out the other parts: Part 1 - Custom Filter Paths Part 2 - Core Form Configuration Part 4 - Configuring Zend Validators Options We’ve looked at custom form filters and we’ve looked at the core form configuration. But what about the other form properties? What about:

Zend Form Mastery with Zend Config - Part 1 Custom Filter Paths

April 27, 2012

When you’re working with Zend Form you keep your configuration as much out of code as you can - right? Well, if you’ve been working withZend Form for more than a little while, you know that Zend Config really makes that pretty simple - well, some of the time. In this series we look, comprehensively at how to do it all with Zend_Config.

Zend Form - Multiple Submit Buttons

April 8, 2011

<p>Let me describe said situation for you; The user has a list of items and they’ve chosen to delete one. Given such a volatile action, you want them to <strong>doubly opt-in</strong> and confirm that they want to do this.</p> <p>The last thing you want your user to feel, after they’ve clicked the delete link, is “<strong>NO WAAAAAAIIIIT! I didn’t mean to do that</strong>”. So the user clicks &'<strong>delete</strong>&' and is directed to a confirmation page (which is rendered with <em>Zend Form</em>). There are two buttons on the page; the first is “<strong>Delete Item</strong>”, the second “<strong>Cancel</strong>”.</p> <p>If the user clicks either button, the form submits to itself, where the value of the button clicked is determined. If the user clicks “<strong>Delete Item</strong>”, then the deletion is carried out, deleting the item from the datasource. If the user clicks “<strong>Cancel</strong>” the user is returned to the list of items they were previously viewing, the item is not deleted and the user is provided a message, confirming the non-deletion.</p>