فهرست منبع

add a bit of documentation

Thomas Rabaix 10 سال پیش
والد
کامیت
796ae6209b
1فایلهای تغییر یافته به همراه8 افزوده شده و 6 حذف شده
  1. 8 6
      Resources/doc/reference/action_create_edit.rst

+ 8 - 6
Resources/doc/reference/action_create_edit.rst

@@ -46,13 +46,15 @@ To specify options, do as follow:
         public function configureFormFields(FormMapper $formMapper)
         {
             $formMapper
-                ->with('Addresses',
-                    array(
-                        'class'       => 'col-md-8',
-                        'description' => 'Lorem ipsum',
+                ->tab('General') // the tab call is optional
+                    ->with('Addresses',
+                        array(
+                            'class'       => 'col-md-8',
+                            'description' => 'Lorem ipsum',
+                            // ...
+                            ))
                         // ...
-                        ))
-                    // ...
+                    ->end()
                 ->end()
             ;
     }