Home  >  Article  >  Backend Development  >  yii 怎么改变默认的控制器

yii 怎么改变默认的控制器

WBOY
WBOYOriginal
2016-06-13 13:39:12884browse

yii 如何改变默认的控制器
控制器有默认的action。用户请求不能指定哪一个action执行时,将执行默认的action。缺省情况下,默认的action名为index。可以通过设置CController::defaultAction改变默认的action。


具体如何设置 ?在哪个地方设置?



------解决方案--------------------
没用过这个框架,不过如果能设置,通常在框架包中配置文件中有选项
------解决方案--------------------
/web/CController.php

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn