Could not open input file app/console

后端 未结 9 2695
故里飘歌
故里飘歌 2021-02-18 22:54

I installed wamp server and a copy of the Symfony2 framework. I am trying to create a Bundle, using the following command:

php app/console generate:bundle --nam         


        
相关标签:
9条回答
  • 2021-02-18 23:19

    Sounds like you (i.e., your user) don't have access to read/execute console. I've never worked with with file permissions on a WAMP stack so I'm not sure what you'll need to do to fix them.

    0 讨论(0)
  • 2021-02-18 23:21

    Actually You need to be in your project root to run this command and you have to add php directory to your system env path variable.

    1. Add your php directory to the system path variable
    2. cd to the root of your project
    0 讨论(0)
  • 2021-02-18 23:21

    First check the Environment Variable which is in Advanced system setting -> set path of C:/wamp/www/bin/php and then

    run cmd->go to the directory of your project which is in www folder using cd C:/wamp/www/yourproject

    use then user php app/console that shows the all command.

    0 讨论(0)
提交回复
热议问题