From: Aleksey Filippov Date: Sat, 28 Feb 2026 12:01:27 +0000 (+0300) Subject: fix(ERP-246): add missing api1/views/site/index.php to fix ViewNotFoundException X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=2dd428378e8e749688a20c0180dfe387f2f872c1;p=erp24_rep%2Fyii-erp24%2F.git 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 --- 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 @@ +