简体   繁体   English

Symfony 2-生成捆绑包(Windows)

[英]Symfony 2 - Generating a Bundle (Windows)

I am new to Symfony. 我是Symfony的新手。 I am running Windows and am using xammp to learn Symfony 2. How would I run the following command? 我正在运行Windows,并且正在使用xammp学习Symfony2。如何运行以下命令? I seem to be getting an error and not sure how to run commands like these successfully. 我似乎遇到错误,不确定如何成功运行此类命令。 I appreciate any suggestions. 我感谢任何建议。 Must I use CMD to create a bundle for Symfony2? 我必须使用CMD为Symfony2创建捆绑软件吗? Is there an easier way to generate a bundle? 有没有更简单的方法来生成捆绑包?

$ php app/console generate:bundle --namespace=Blogger/BlogBundle --format=yml

Using the CLI tools is the easiest way to generate a bundle and many other things in symfony2. 使用CLI工具是在symfony2中生成捆绑包和许多其他东西的最简单方法。

Make sure you are in the root of your app to use the php app/console utility. 确保您位于应用程序的根目录下,才能使用php app/console实用程序。 If you 'dir', then you should see something like:- 如果您是'dir',那么您应该会看到类似以下内容的信息:-

28/09/2013  18:13    <DIR>          .
28/09/2013  18:13    <DIR>          ..
25/03/2013  12:50    <DIR>          app
01/03/2013  23:40             1,790 composer.json
09/03/2013  20:28            39,452 composer.lock
24/07/2013  12:41    <DIR>          data
01/03/2013  23:40             1,084 LICENSE
01/03/2013  23:40             6,202 README.md
01/03/2013  23:40    <DIR>          src
01/03/2013  23:40             8,393 UPGRADE.md
02/03/2013  13:29    <DIR>          vendor
07/04/2013  17:12    <DIR>          web

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM