Hi all,
If the error occurs in view file (such as /site/index.php).
Yii2 shows the error line perfect. But when the error occurs in the layout file (such as /layouts/main.php.
Yii2 only points to the function render in controller/action, such as:
$this->render('index', [
'user' => $user
]);
Please help me.