yii2中两个单词的控制器的视图怎么样写才可以呢 贵哥的编程之路 2021-12-24 103 阅读1分钟 如果控制器是PostCommentController.php 视图就写成post-comment.php 访问的话,就是虚拟域名/postcomment/方法即可