- Добавлен метод запускающий конкретный триггер

parent 8868dbd2
...@@ -18,12 +18,16 @@ class DefaultController extends BaseController ...@@ -18,12 +18,16 @@ class DefaultController extends BaseController
return [ return [
'Index' => 'Главная страница модуля', 'Index' => 'Главная страница модуля',
'Rechecktriggers' => 'Запуск проверки срабатывания триггеров', 'Rechecktriggers' => 'Запуск проверки срабатывания триггеров',
'Dropschedule' => 'Drop schedule By id' 'Inittrigger' => 'Initiate trigger By id'
]; ];
} }
public function actionDropschedule($id){ public function actionInittrigger($id){
TriggerSchedule::findOne($id)->delete(); if (\Yii::$app->request->isAjax) {
/** @var TriggerTrigger $trigger */
$trigger = TriggerTrigger::findOne($id);
$trigger->initAction();
}
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment