Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     TopicAsset::register(\Yii::$app->getView());
 }
Ejemplo n.º 2
0
use yii\helpers\Url;
use topic\widgets\Tabs;
use common\widgets\LinkPager;
use topic\widgets\TopicPager;
use tag\models\Tag;
use sidebar\Sidebar;
/**
 * @var \common\components\View $this
 * @var \yii\data\ActiveDataProvider $dataProvider
 * @var array|\yii\db\ActiveRecord[] $topics
 * @var \topic\models\Topic $topic
 * @var \tag\models\Tag $tagModel
 * @var \tag\models\Tag $tag
 */
\topic\TopicAsset::register($this);
$formatter = Yii::$app->formatter;
if ($tagModel instanceof Tag) {
    $this->title = Yii::$app->formatter->asText($tagModel->short_description);
} else {
    $this->title = 'Активные темы';
}
$item['topic_count'] = 0;
$dateTimeAgo = new \common\components\DateTimeAgo();
?>
<div class="ptagged">
    <div class="question-content">
        <div class="question-list-header">
            <div class="question-list-title">
                <h3><?php 
echo $this->title;