Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Installed Admin bundle

  • Loading branch information...
commit 28945a0243f1eef8e7c71c4da44c29860cfe1738 1 parent 2040756
@xdissent authored
Showing with 16 additions and 0 deletions.
  1. +4 −0 app/AppKernel.php
  2. +2 −0  app/autoload.php
  3. +10 −0 app/config/routing.yml
View
4 app/AppKernel.php
@@ -17,6 +17,10 @@ public function registerBundles()
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
+ new Sonata\jQueryBundle\SonatajQueryBundle(),
+ new Sonata\BluePrintBundle\SonataBluePrintBundle(),
+ new Sonata\AdminBundle\SonataAdminBundle(),
+ new Knp\Bundle\MenuBundle\KnpMenuBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
View
2  app/autoload.php
@@ -14,6 +14,8 @@
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
+ 'Sonata' => __DIR__.'/../vendor/bundles',
+ 'Knp' => __DIR__.'/../vendor/bundles',
));
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
View
10 app/config/routing.yml
@@ -2,3 +2,13 @@
#_internal:
# resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
# prefix: /_internal
+
+
+admin:
+ resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
+ prefix: /admin
+
+_sonata_admin:
+ resource: .
+ type: sonata_admin
+ prefix: /admin
Please sign in to comment.
Something went wrong with that request. Please try again.