Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Follow this installation instruction: <a href="http://sonata-project.org/bundles/admin/master/doc/reference/installation.html" rel="nofollow">http://sonata-project.org/bundles/admin/master/doc/reference/installation.html</a> Then you have to create a new Admin class that references an existing entity class of your bundle: <a href="http://sonata-project.org/bundles/admin/master/doc/reference/getting-started.html" rel="nofollow">http://sonata-project.org/bundles/admin/master/doc/reference/getting-started.html</a></p> <p>Please add more specific question if you want further support, thanks!</p> <p>-- EDIT:</p> <p>You can declare it wherever you want. Just notice that it has to extend base Admin class and must be a service tagged with 'sonata.admin'. IE:</p> <pre><code>namespace Acme\FooBundle\Admin; use Sonata\AdminBundle\Admin\Admin; class FooAdmin extends Admin { } </code></pre> <p>and in services.xml of your bundle you have to add the declaration of the service:</p> <pre><code>&lt;container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"&gt; &lt;services&gt; &lt;service id="sonata.admin.foo" class="Acme\FooBundle\Admin\FooAdmin"&gt; &lt;tag name="sonata.admin" manager_type="orm" group="Foos" label="Foo"/&gt; &lt;argument /&gt; &lt;argument&gt;Acme\FooBundle\Entity\Foo&lt;/argument&gt; &lt;argument&gt;SonataAdminBundle:CRUD&lt;/argument&gt; &lt;/service&gt; &lt;/services&gt; &lt;/container&gt; </code></pre> <p>Whenever you have the class and the declaration, if your setup is correct, you will see the new link in the Admin Dashboard of Sonata (it should be at the url /admin).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload