clear test

parent 6352d663
......@@ -25,25 +25,11 @@ class PostController extends BaseController
'Load' => 'Подгрузка записей',
'Tag' => 'Просмотр тега',
'View' => 'Просмотр записи',
'Tags'=>'',
'Send-article' => 'Послать статью',
'Set-cookie' => 'Установить куки',
'Tag-index' => 'Перезагрузка статей с учетом тэгов',
];
}
public function actionTags()
{
$models = Post::find()->joinWith('postTagAssigns')->where([
PostTagAssign::tableName().'.tag_id' => [2,6]
]);
foreach ($models as $model)
{
echo $model->id . '<br>';
}
}
/**
* Displays all Post models.
* @return mixed
......
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