- Debugging trigger

parent f1c14418
......@@ -243,18 +243,17 @@ class Passing extends \common\components\ActiveRecordModel
if ($exists===true && $count==1) {
$init = $trigger->initAction($params);
if ($init===true) {
var_dump($init); die;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, Yii::$app->urlManager->createAbsoluteUrl('/triggers/default/rechecktriggers'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
if (!curl_exec($curl)) {
$this->addError('passed', curl_error($curl));
return false;
echo curl_error($curl);
die;
}
return true;
} else {
$this->addError('passed', $init);
return false;
echo $init;
die;
}
}
}
......
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