Browse Source

Update action_show.rst

Need to add the ShowMapper class in order for this to function correctly.
Danny Garcia 11 năm trước cách đây
mục cha
commit
3e05c7b6ca
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Resources/doc/reference/action_show.rst

+ 2 - 0
Resources/doc/reference/action_show.rst

@@ -39,6 +39,8 @@ The following is a working example of a ShowAction
     <?php
     // src/Acme/DemoBundle/Admin/PostAdmin.php
 
+    use Sonata\AdminBundle\Show\ShowMapper;
+
     class ClientAdmin extends Admin
     {
         protected function configureShowFields(ShowMapper $showMapper)