В поле таблицы, выводить передавая модель в представление и делая в нем <?= $model->content?>
Сам шаблон представления в файле остается.
Код: Выделить всё
$query = Post::find()->where(['type_id'=>$type_id]);
$query->andWhere(['=','subtype_id',$subtype_id]);
$query->andWhere(['=','category_id',$category_id]);
$queryResult = $query->asArray()->all();
Код: Выделить всё
//model Student
public static function primaryKey()
{
return ['id'];
}
Код: Выделить всё
return [
'class' => \yii\web\UrlManager::class,
'normalizer' => [
'class' => 'yii\web\UrlNormalizer',
'normalizeTrailingSlash' => true,
],
]