Hello all,
I m new in symfony, i want to overwride the methode configure() of the
classe sfGuardPermissionForm in /lib/form/doctrine/
sfDoctrineGuardPlugin/sfGuardPermissionForm.class.php, to customise
the Add/Edit permission Form added 2 widgets and 2 validator to create
2 select lists from 2 differents models (Sites and SymfonyTasks)
this is my code
class sfGuardPermissionForm extends PluginsfGuardPermissionForm
{
public function configure()
{
$this->setWidgets['sites_list'] = new
sfWidgetFormDoctrineChoiceMany(array('model' => 'Sites'));
$this->setWidgets['tasks_list'] = new
sfWidgetFormDoctrineChoiceMany(array('model' => 'SymfonyTasks'));
$this->setValidators['sites_list'] = new
sfValidatorDoctrineChoiceMany(array('model' => 'Sites', 'required' =>
true));
$this->setValidators['tasks_list'] = new
sfValidatorDoctrineChoiceMany(array('model' => 'SymfonyTasks',
'required' => true));
}
}
My prolblem is when i clear cache and visit the form in the backend,
new selects doesn't appear!
Any idea ?
Thanks in Advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---