最赞回答 / 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
已采纳回答 / 双子雨是海的泪
'urlManager'=>[ 'enablePrettyUrl' => true, 'showScriptName' => false, 'suffix'=>'.html',],此段代码放置在前台或者后台的config/main.php中再就是检查你的index.php是否去掉了
2017-03-05
最新回答 / Gigure
是否使用url美化??http://frontend.hyii2.com/post/create或者http://frontend.hyii2.com/post/create.html
2017-03-04