====== Console Application Example in Yii2 ====== This is based on Yii2 Advanced Application template ===== Related info ===== The ''console/config/main.php'' config file has the line '''controllerNamespace' => 'console\controllers''' which includes the everything in the ''console/controllers'' directory to be included in the console application. ===== Steps ===== Create a file called ''TestController.php'' in ''console/controllers'' as below Now run yii in the main application directory as ./yii test ./yii test/you ./yii test/you Harry