steward
(Steward)
December 10, 2016, 11:38am
1
Anyone spot what I am doing wrong here?
I will end up with many console commands, I want to organize them by folders.
$ ./yii /integrity/kvsusermap
Error: Unknown command "/integrity/kvsusermap".
$ ./yii integrity/kvsusermap
Error: Unknown command "integrity/kvsusermap".
namespace console\controllers\integrity;
use Yii;
use yii\console\Controller;
class KvsusermapController extends Controller
{
public function actionIndex($message = 'hello world')
{
echo $message . "\n";
}
}
Controller script at /Users/me/sites/www/console/controllers/integrity/Kvsusermap.php
Thanks
tri
(tri - Tommy Riboe)
December 10, 2016, 3:22pm
2
Perhaps not what you want, but with exclusive command names, I think you can use $controllerMap in console app configuration, for placement of controller code.