Explorar el Código

[FormView] fix phpDoc

Victor Berchet hace 14 años
padre
commit
2b99d45dd3
Se han modificado 1 ficheros con 5 adiciones y 7 borrados
  1. 5 7
      src/Symfony/Bridge/Twig/Extension/FormExtension.php

+ 5 - 7
src/Symfony/Bridge/Twig/Extension/FormExtension.php

@@ -120,15 +120,13 @@ class FormExtension extends \Twig_Extension
      *
      *     {{ form_widget(view) }}
      *
-     * You can pass attributes element during the call:
+     * You can pass options during the call:
      *
-     *     {{ form_widget(view, {'class': 'foo'}) }}
+     *     {{ form_widget(view, {'attr': {'class': 'foo'}}) }}
+     * 
+     *     {{ form_widget(view, {'separator': '+++++'}) }}
      *
-     * Some fields also accept additional variables as parameters:
-     *
-     *     {{ form_widget(view, {}, {'separator': '+++++'}) }}
-     *
-     * @param FormView        $view       The view to render
+     * @param FormView        $view      The view to render
      * @param array           $variables Additional variables passed to the template
      */
     public function renderWidget(FormView $view, array $variables = array())