Sfoglia il codice sorgente

Update action_show.rst

Need to add the ShowMapper class in order for this to function correctly.
Danny Garcia 11 anni fa
parent
commit
3e05c7b6ca
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)