Jordi wrote:
> Why?
>
> On 12 mei, 13:43, Ian<[EMAIL PROTECTED]> wrote:
>
>> From what I remember, its not the best idea to overload the bind
>> method.
>>
top posting and not trimming your posts? naughty ;)
If you do somethign like this:
6 public function configure()
7 {
8 $schema = new sfWidgetFormSchema(array(
9 'username' => new sfWidgetFormInput(),
10 'password' => new sfWidgetFormInputPassword(),
11 'remember' => new sfWidgetFormInputCheckbox(),
12 ));
13
14 $schema->setLabel('username', 'Username:');
15 $schema->setLabel('password', 'Password:');
16 $schema->setLabel('remember', 'Remember Me:');
17 $schema->setNameFormat('login[%s]');
then you cna simple do
$form->bind($request->getParameter('login'));
which will contain the CSRF hash, so no overloading of the bind method
is required.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---