Bonjour,
Voila j'ai un souci avec un formulaire. Pour l'instant j'ai ceci:
EvenementForm.class.php
avec dans mon action.class.php:class EvenementForm extends BaseEvenementForm
{
/**
* @see QuestionnaireForm
*/
public function configure()
{
parent::configure();
unset(
$this['created_at'],
$this['updated_at'],
$this['user_id'],
$this['NumeroEvent']
);
$this->widgetSchema ['idSousType'] = new sfWidgetFormChoice (array (
'choices' => Doctrine :: getTable('SousTypeEvent')->getNom('1'),
'expanded' => true,
));
}
}
Mon problème est que je ne vois pas comment passé mon $this ->idType dans le configure() pour l'utiliser dans mon sfWidgetFormChoice à la place du '1'.public function executeNew(sfWebRequest $request)
{
$this ->idType = $request->getParameter('idtype');
$this->libelletype = Doctrine :: getTable('TypeEvent')->getNom($this ->idType);
$this->form = new evenementForm();
}
Quelqu'un comprend t il mon problème?
Merci d 'avance
Partager