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

yii 怎么改变默认的控制器

WBOY
Release: 2016-06-13 10:15:13
Original
881 people have browsed it

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


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



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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template