nie mogę sobie poradzić ze sprawdzeniem, czy podane w formularzu hasła są identyczne. Moja klasa formularza:
<?php class UserForm extends BaseUserForm { public function configure() { 'id' => new sfWidgetFormInputHidden(), 'email' => new sfWidgetFormInput(), 'pass' => new sfWidgetFormInputPassword(), 'repass' => new sfWidgetFormInputPassword(), 'name' => new sfWidgetFormInput() )); 'email' => 'Adres e-mail', 'pass' => 'Hasło', 'repass' => 'Powtórz hasło', 'name' => 'Imię' )); 'id' => new sfValidatorPropelChoice(array('model' => 'User', 'column' => 'id', 'required' => false)), 'email' => new sfValidatorEmail(), 'repass' => ?, )); 'required' => 'Pole e-mail jest wymagane', 'invalid' => 'Podany adres e-mail jest niepoprawny' )); 'required' => 'Hasło jest wymagane', 'invalid' => 'Podane hasło jest złeee' )); $this->widgetSchema->setFormFormatterName('list'); $this->widgetSchema->setNameFormat('user[%s]'); } } ?>
Nie wiem za bardzo jak to ugryźć. Na forum Symfony znalazłem info:
http://www.symfony-project.org/forum/index.php/m/53890/
ale coś nie bardzo to chce działać :/
Korzystam z Symfony 1.1.0-RC2
Proszę o pomoc,
pion