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

- test

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