最赞回答 / Um
在组件里添加条件。$tags = Yii::$app->request->get('tag');if($tags) { $tag = new PtModel(); $post_id = $tag->getPostid($tags); if ($post_id) { foreach ($post_id as $v) { $id[] = $v['post_id']; } $cond = ['id' => ...
2017-03-16
最新回答 / Gigure
是否使用url美化??http://frontend.hyii2.com/post/create或者http://frontend.hyii2.com/post/create.html
2017-03-04