Commit 0e18a254 authored by Shakarim Sapa's avatar Shakarim Sapa

- test

parent b0959fea
......@@ -34,7 +34,9 @@ class BlogBidController extends BaseController {
if (!is_null($record->post) && !is_null($record->post->template_id))
$template_id = $record->post->template_id;
// Сформировали массив для шаблона
$templateData = [];
$templateData = [
'{link_to_record}' => $record->post->url
];
// Пытаемся произвести отправку
$sended = TriggerSchedule::sendMessage($record->email, $template_id, $templateData, null);
// Если отправка успешна
......
......@@ -9,7 +9,7 @@ use yii\grid\GridView;
<h1><?= Html::encode($this->title) ?></h1>
<?php echo Yii::$app->urlManager->baseUrl; ?>
<?php echo Yii::$app->urlManager->baseUrl; die; ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
......
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