Вы также должны добавить следующий PHP-код в файл config.php, если хотите видеть ошибки PHP:
'front' => [
'throwExceptions' => true,
'showException' => true
],
'phpsettings' => [
'display_errors' => 1
],
'template' => [
'forceCompile' => true
],
'csrfProtection' => [
'frontend' => true,
'backend' => true
],
'httpcache' => [
'debug' => true
]