From: fomichev Date: Thu, 27 Mar 2025 14:55:54 +0000 (+0300) Subject: Создание директории X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f4b7da0f4c9ce6df3e06143ec7200a3378e25990;p=erp24_rep%2Fyii-erp24%2F.git Создание директории --- diff --git a/erp24/media/controllers/NotificationController.php b/erp24/media/controllers/NotificationController.php index b2e87338..0de69eb3 100644 --- a/erp24/media/controllers/NotificationController.php +++ b/erp24/media/controllers/NotificationController.php @@ -84,6 +84,9 @@ class NotificationController extends Controller */ $rawBody = Yii::$app->request->getRawBody(); + if (!is_dir(self::OUT_DIR)) { + mkdir(self::OUT_DIR, 0777, true); + } file_put_contents( self::OUT_DIR . '/notifications.txt', PHP_EOL . date('Y-m-d H:i:s') . ' ' . $rawBody,