I’ve been trying to Google on this but can’t seem to find a good answer.
For some reason my console commands aren’t found by yii.
Whenever I run php yii ControllerName I get a “Error: Unknown command ‘ControllerName’”.
I have my “HelloController.php” in both app/commands and app/console/controllers (just trying the different folder for basic/advanced to see if there’s any missconfigurations somewhere) but it’s the same output for both.
When I run php yii I get the "help screen" like this, with no extra controllers specified:
This is Yii version 2.0.0.
The following commands are available:
- asset Allows you to combine and compress your JavaScript and CSS files.
- cache Allows you to flush cache.
- fixture Manages fixture data loading and unloading.
- help Provides help information about console commands.
- message Extracts messages to be translated from source files.
- migrate Manages application migrations.
To see the help of each command, enter:
yii help <command-name>
I’m running the basic-template and I’ve moved my /app folder above root so I have two folders “/app” (yii) and “/public” (webroot).
Any ideas how I can troubleshoot this further?
Thanks