Yii::t('settings/main', 'Показывать подробную техническую информацию об ошибках'), ]; } public static function tableName() { return '{{%common_settings}}'; } public static function getInstance(): CommonSettings { $record = CommonSettings::find()->limit(1)->one(); if (!$record) { $record = new CommonSettings(); $record->loadDefaultValues(); } return $record; } }