Jelajahi Sumber

Update action_show.rst

Need to add the ShowMapper class in order for this to function correctly.
Danny Garcia 11 tahun lalu
induk
melakukan
3e05c7b6ca
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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)