问题
I am able to generate bundle. But I face problem when building model using propel. I tried php symfony propel:build-model
to generate model but it throws error - could not open input file: symfony. php app/console cache:clear
works fine for me. Will I have to set environmental variable for symfony too. I am on window 7 32bit machine. I am using symfony2. Any suggestion will be very helpful to me.
回答1:
Use php app/console propel:build-model
instead of php symfony propel:build-model
. The app/console
part is just a reference to the console
file inside the app
directory. That file is the main entrance for all console commands in your Symfony application.
The php
part tells the console to use the php
command to execute the app/console
file and propel:build-model
is the command you execute.
EDIT: From the comments: Also don't forget to add the bundle to AppKernel::registerBundles
.
来源:https://stackoverflow.com/questions/16855008/could-not-find-input-file-symfony