i have controller in common folder that have method test
public function actionTest() {
$s = "sdfs";
return $s;
}
And have afterAction for this action like:
public function afterAction($action) {
if ($action->id == "test") {
echo 'here afterActioin';
}
}
and i call the test action from another controller :
public function actionTest3() {
echo Yii::$app->runAction('travia/test');
}
the problem is when i call the test3 in browser nothing display but if i comment the afterAction the method will return . where is the problem what's the behaviour of the afterAction that doen't let my action to return something?