public function actionTest() { $dir = Yii::getAlias('@storage'); $msg = file_exists($dir) ? 'exists' : 'DOES NOT EXIST'; echo "{$dir} - {$msg}\n"; }