Cakephp shell :Shell class HelloShell could not be found

前端 未结 3 1591
名媛妹妹
名媛妹妹 2020-12-20 14:17

I am a newer to cakephp .I config the cakephp shell as the cakephp handbook says,when I run the HelloShell with the command cake Hello ,I got the error information as follo

3条回答
  •  执笔经年
    2020-12-20 14:37

    there is your mistake. you should always be in your APP path to execute the cake console.

    ...app/>../lib/Cake/Console/cake MyShell
    

    or (using the APP Console folder):

    ...app/>Console/cake MyShell
    

    and MyShell should then be in ...app/Console/Command/. Thats all there is to it.

提交回复
热议问题