News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Symfony Blog:
Call the expert How to implement a conditional validator?
September 05, 2008 @ 12:06:18

On the symfony blog today, there's a new post that looks at creating a conditional validator in the context of a classic login form for the framework.

Jon works on a symfony 1.1 project with a classic login form. The form is composed of two fields: a username and a password. The validation rules are quite straightforward: he wants each field to be required and he wants to check the correctness of the password.

They show how to set up a normal login widget and how to apply a sfValidatorCallback in the configure() method to check the values in the form. This method checks the username and password values and tosses an error with sfValidatorError if a problem is found.

0 comments voice your opinion now!
conditional validator tutorial symfony framework



Similar Posts

WorkingSoftware.com.au: Something Like Threading- PHP Process Forking & Interprocess Communication

WebCheatSheet.com: Secure File Upload with PHP

php|architect: Zend Framework - A Practical Tutorial

Northclick Blog: Tutorial for the easy use of gettext for internationalization of PHP Apps

News.com: Zend to show PHP tools in October


Community Events







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


package code example conference release application developer ajax framework zendframework mysql releases cakephp book database zend job PHP5 security PEAR

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