News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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


blog comments powered by Disqus

Similar Posts

Stefan Mischook's Blog: PHP Video: always MySQL with PHP?

Noupe.com: Discussing PHP Frameworks: What, When, Why and Which?

Kevin Shroeder's Blog: Zend_Log with multiple writers

Alex Netkachov's Blog: Zend, Prado, ASP.NET. Which framework is the best?

DevShed: Positioning Strings with the show_xy() Method in PDF Documents with PHP 5


Community Events

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


list language community extension introduction laravel5 api laravel opinion version series framework voicesoftheelephpant example php7 release library interview podcast security

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