Commit 4b7d52af authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена генерация ссылки в шаблоне письма

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