×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Pascual Muñoz
Added: Oct 29, 2016 10:34 PM
Modified: Oct 30, 2016 8:41 PM
Views: 10
Tags: form builder
form builder
  1. $builder->add('${nombre_del_campo}', \Symfony\Component\Form\Extension\Core\Type\${nombreType}::class,
  2.                 [
  3.                     "label" => ${label},
  4.                     "required" => "required",
  5.                     "attr" =>
  6.                     [
  7.                         "class" => "${css_style} form-control"
  8.                     ]
  9.                 ]);