Browse Source

Update action_show.rst

Need to add the ShowMapper class in order for this to function correctly.
Danny Garcia 11 years ago
parent
commit
3e05c7b6ca
1 changed files with 2 additions and 0 deletions
  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)