我是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的行爲與本教程所期望的不同。 –