<?php

use yii\helpers\Url;
/**
 * @var $this yii\web\View
 * @var $model common\models\Question
**/
$block = \common\models\SiteBlock::getQuestionBlockTitle($model);
echo $this->render($block['view'], $block['data']);
 /**
  * Url: /inquirers/{$id}
  * @param int $id Inquirer id
  * @return mixed
  * @throws NotFoundHttpException
  */
 public function actionInquirerPage($id)
 {
     if (!isset($id)) {
         throw new NotFoundHttpException('Страница не найдена.');
     }
     return $this->render('@frontend/views/site/index', ['templateType' => 'col2', 'title' => 'Dynamomania.com | Опрос', 'columnFirst' => ['inquirer' => SiteBlock::getQuestionBlockTitle(false, $id), 'comments' => Comment::getCommentsBlock($id, Comment::COMMENTABLE_INQUIRER)], 'columnSecond' => ['short_news' => SiteBlock::getShortNews(10)]]);
 }