Routing ======= The default routes used in the CRUD controller are accessible through the ``Admin`` class. The ``Admin`` class contains two routing method: * ``getUrls()``: Returns the available routes; * ``generateUrl($name, $options)``: Generates the related routes. Routing Definition ------------------ You must set a ``base_route`` property inside your ``Admin`` class, which represents the each route prefix. .. code-block:: php class PostAdmin extends Admin { protected $class = 'Application\NewsBundle\Entity\Post'; protected $base_route = 'news_post_admin'; } This definition is mandatory. .. code-block:: xml NewsBundle:PostAdmin:list NewsBundle:PostAdmin:create NewsBundle:PostAdmin:batch NewsBundle:PostAdmin:update NewsBundle:PostAdmin:edit NewsBundle:PostAdmin:delete Routing usage ------------- Inside a CRUD template, a route can be generated by using the ``Admin`` class. .. code-block:: html List List