Search

Home > Zend Screencasts: Video Tutorials about the Zend PHP Framework (iphone) > Ajaxify Your Zend_Form Validation with jQuery
Podcast: Zend Screencasts: Video Tutorials about the Zend PHP Framework (iphone)
Episode:

Ajaxify Your Zend_Form Validation with jQuery

Category: Technology
Duration: 00:00:00
Publish Date: 2010-04-09 15:06:11
Description:

We’re going to take what was put together in the last 3 videos and now include some server-side validation that will appear asynchronously. This is an example of using Zend_Form as a validation tool via JSON.

Grab a copy of the project or browse the repository.

UPDATE: as a couple people have mentioned, you can cut down your IndexController even more by using the Zend_Json view helper:

public function validateformAction()
{
$f = new Form_Registration();
$f->isValid($this->_getAllParams());
$this->_helper->json($f->getMessages());
}

Enjoy!

flattr this!

Total Play: 0

Users also like

300+ Episodes
Zen 100+     10+