如何从模型访问shell?

时间:2016-08-29 21:56:13

标签: cakephp-3.0

如何从CakePHP 3中的控制器调用烘焙shell?

\Cake\Console\ShellDispatcher::run(array(__FILE__, 'bake')); 

导致错误:Shell class for "Bake" could not be found.添加

use Bake\Shell; 

在顶部会导致Shell class for "Bake" could not be found.: - (

0 个答案:

没有答案