$form->handleRequest($this->getRequest());
Closed this issue · 1 comments
I have a problema with the version symfony 2.3. the code
$form->handleRequest($this->getRequest());
not working ...
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('nombre','text' ,array('label'=>'Nombre *'));
$builder->add('telefonocontacto','text' ,array('label'=>'Telefono','required'=>false));
$builder->add('email','email',array('label'=>'Correo electrónico *'));
$builder->add('asunto','text',array('label'=>'Asunto *'));
$builder->add('mensaje','textarea',array('label'=>'Mensaje *') );
$builder->add('aLicencia','checkbox',array( 'label'=> 'He leido y Aceptado las',
));
//setting the captcha
// $settings=array(
// 'width'=>206,
// 'height'=>57,
// 'font_size'=>22,
// 'length'=>7,
// 'border_color'=>"cccccc"
// );
// //add captcha to builder
$builder->add('recaptcha', 'genemu_captcha',$settings);
$settings=array ('configs' => array(
'theme' => 'clean',
'lang' => 'es'
),
'validator' => array('timeout' => 30),
'label'=>'Capcha *',
);
$builder->add('recaptcha', 'genemu_recaptcha',$settings);
}
feel free to reopen with more information if you still have this issue