Cakephp shell :Shell class HelloShell could not be found

前端 未结 3 1589
名媛妹妹
名媛妹妹 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:23

    Make sure you give cake folder path in /var/www/html/Console/cake.php ini_set('include_path', $root . PATH_SEPARATOR . 'Cake' . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));

    Then go to root folder. In my case the location will be /var/www/html/ then give the shell file name; hello is my shell name, that would be /var/www/html/Console/cake hello combining together /var/www/html$ /var/www/html/Console/cake hello

    Your shell will be executed.

提交回复
热议问题