我是symfony2的新手,但不是symfony。我目前在做the symblog tutorial。它到目前为止确定,但是我有一点卡在生成包?symfony2教程 - 生成包
的教程说运行下面的命令
php app/console generate:bundle --namespace=Blogger/BlogBundle --format=yml
完成,它应该在
- 应用添加参考/生成代码以束后/ AppKernel.php
- 应用程序/ config/routing.yml
但是它没有添加任何东西?...我有点c onfused?控制台输出以下,但到包的代码引用没有在文件
Welcome to the Symfony2 bundle generator
Your application code must be written in bundles. This command helps
you generate them easily.
Each bundle is hosted under a namespace (like Acme/Bundle/BlogBundle).
The namespace should begin with a "vendor" name like your company name, your
project name, or your client name, followed by one or more optional category
sub-namespaces, and it should end with the bundle name itself
(which must have Bundle as a suffix).
See http://symfony.com/doc/current/cookbook/bundles/best_practices.html#index-1 for more
details on bundle naming conventions.
Use/instead of \ for the namespace delimiter to avoid any problem.
Bundle namespace [Blogger/BlogBundle]:
要小心,这个教程是sf2.0.x.你正在使用哪个版本? – j0k
2.1.7 - 也许即时调用错误的命令或使用它错误? –
新版本的symfony的行为与本教程所期望的不同。 –