Hi.
I run console script
./yii cron/test
in actionTest I need run another yii consile script in
exec(./path/to/yii/app/yii cron test2);
How can I get /path/to/yii/app/yii in this console action?
Hi.
I run console script
./yii cron/test
in actionTest I need run another yii consile script in
exec(./path/to/yii/app/yii cron test2);
How can I get /path/to/yii/app/yii in this console action?
Try using Yii::$app->basePath.