我学习SonataAdminBundle。 我发现:
rel=“nofollow”http://sonata-project.org/bundles/news/2-0/doc/vis/installation.html。
but this haven t first point. i found:
[SonataAdminBundle]
git=http://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
[SonataBlockBundle]
git=http://github.com/sonata-project/SonataBlockBundle.git
target=/bundles/Sonata/BlockBundle
[SonataCacheBundle]
git=http://github.com/sonata-project/SonataCacheBundle.git
target=/bundles/Sonata/CacheBundle
[SonatajQueryBundle]
git=http://github.com/sonata-project/SonatajQueryBundle.git
target=/bundles/Sonata/jQueryBundle
[SonataDoctrineORMAdminBundle]
git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
target=/bundles/Sonata/DoctrineORMAdminBundle
[KnpMenuBundle]
git=http://github.com/KnpLabs/KnpMenuBundle.git
target=/bundles/Knp/Bundle/MenuBundle
[KnpMenu]
git=http://github.com/KnpLabs/KnpMenu.git
target=/knp/menu
[Exporter]
git=http://github.com/sonata-project/exporter.git
target=/exporter
[SonataNewsBundle]
git=http://github.com/sonata-project/SonataNewsBundle.git
target=/bundles/Sonata/NewsBundle
页: 1 bin/install vendors. . Install is correct. Id added line to AppKernel and autoload, and if i run:
php app/console sonata:easy-extends:generate SonataNewsBundle
i 存在错误:
[InvalidArgumentException]
Bundle "ApplicationSonataNewsBundle" does not exist or it is not enabled.
i 加入:
new ApplicationSonataNewsBundleApplicationSonataNewsBundle(),
页: 1
php app/console sonata:easy-extends:generate SonataNewsBundle
then i 存在错误:
PHP Fatal error: Class ApplicationSonataNewsBundleApplicationSonataNewsBundle not found in /home/lanox06/Projects/sym2/app/AppKernel.php on line 29
如何做到这一点? 我希望测试这些申请。