Could not find input file symfony

我与影子孤独终老i 提交于 2019-12-08 13:41:50

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!