i have downloaded a sonata admin bundle, and have placed in /var/www/Symfony/vendor/symfony/src/Symfony/Bundle
, and have made an entry in AppKernel.php
You need to move the bundle to
/var/www/Symfony/vendor/bundles
Then in AppKernel.php add
new Sonata\AdminBundle\SonataAdminBundle(),
in your $bundles array.
In autoload.php add
'Sonata' => __DIR__.'/../vendor/bundles',
to the $loader->registerNamespaces
array
First off, SonataAdminBundle
lives in Sonata
namespace, not Symfony
. So you'll have to rewrite the instantiation in app/AppKernel.php
to:
new Sonata\AdminBundle\SonataAdminBundle()
You also have to register namespace in app/autoload.php
:
$loader->registerNamespaces(array(
...
'Sonata' => __DIR__.'/path/to/parent/of/Sonata/folder'
...
));