From 2dd428378e8e749688a20c0180dfe387f2f872c1 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Sat, 28 Feb 2026 15:01:27 +0300 Subject: [PATCH] fix(ERP-246): add missing api1/views/site/index.php to fix ViewNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- erp24/api1/views/site/index.php | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 erp24/api1/views/site/index.php diff --git a/erp24/api1/views/site/index.php b/erp24/api1/views/site/index.php new file mode 100644 index 00000000..c305bf13 --- /dev/null +++ b/erp24/api1/views/site/index.php @@ -0,0 +1,3 @@ +