소스 검색

[FrameworkBundle] Fix the FormHelper phpDoc

Victor Berchet 14 년 전
부모
커밋
c0355038cf
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php

+ 5 - 5
src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php

@@ -73,7 +73,7 @@ class FormHelper extends Helper
     /**
      * Renders the HTML enctype in the form tag, if necessary.
      *
-     * Example usage in Twig templates:
+     * Example usage templates:
      *
      *     <form action="..." method="post" <?php echo $view['form']->enctype() ?>>
      *
@@ -89,15 +89,15 @@ class FormHelper extends Helper
     /**
      * Renders the HTML for a given view.
      *
-     * Example usage in Twig:
+     * Example usage:
      *
-     *     <?php view['form']->widget() ?>
+     *     <?php echo view['form']->widget() ?>
      *
      * You can pass options during the call:
      *
-     *     <?php view['form']->widget(array('attr' => array('class' => 'foo'))) ?>
+     *     <?php echo view['form']->widget(array('attr' => array('class' => 'foo'))) ?>
      *
-     *     <?php view['form']->widget(array('separator' => '+++++)) ?>
+     *     <?php echo view['form']->widget(array('separator' => '+++++)) ?>
      *
      * @param FormView $view      The view for which to render the widget
      * @param array    $variables Additional variables passed to the template