]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
fix(ERP-246): add missing api1/views/site/index.php to fix ViewNotFoundException
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sat, 28 Feb 2026 12:01:27 +0000 (15:01 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sat, 28 Feb 2026 12:01:27 +0000 (15:01 +0300)
commit2dd428378e8e749688a20c0180dfe387f2f872c1
tree5c60336e7409e267854c0b0d4d735b8fe238f773
parent63865c6d0004ef4a07f80ec23ea477f029606398
fix(ERP-246): add missing api1/views/site/index.php to fix ViewNotFoundException

api1 and main app share namespace app\controllers, so SiteController
from the main app is accessible via api1. When GET / hits api1, Yii2
routes to SiteController::actionIndex() which calls render('index'),
but api1/views/site/index.php did not exist → ViewNotFoundException (500).

Added empty view file to stop the error. api1 is a REST API (FORMAT_JSON)
so the rendered empty string is JSON-encoded as "".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
erp24/api1/views/site/index.php [new file with mode: 0644]