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

parent 21a073b1
...@@ -197,6 +197,7 @@ class CoContent extends \common\components\ActiveRecordModel ...@@ -197,6 +197,7 @@ class CoContent extends \common\components\ActiveRecordModel
public function afterSave($insert, $changedAttributes) public function afterSave($insert, $changedAttributes)
{ {
parent::afterSave($insert, $changedAttributes); parent::afterSave($insert, $changedAttributes);
if ($this->category_id==4) { // <<< С этим надо что то делать, очень много привязок динамичных данных
$curl = curl_init(); $curl = curl_init();
curl_setopt($curl, CURLOPT_URL, Yii::$app->urlManager->createAbsoluteUrl('/triggers/default/recheckcases')); curl_setopt($curl, CURLOPT_URL, Yii::$app->urlManager->createAbsoluteUrl('/triggers/default/recheckcases'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
...@@ -204,4 +205,5 @@ class CoContent extends \common\components\ActiveRecordModel ...@@ -204,4 +205,5 @@ class CoContent extends \common\components\ActiveRecordModel
echo curl_error($curl); echo curl_error($curl);
} }
} }
}
} }
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