Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
路线:
"login" => "module/users/login",
如何通过路由(login)获取模块/控制器/动作?
login
可以在 config/main.php 中路由登录模块
... 'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array( '<action>/*'=>'modules/user/<action>', ), ) ...
它将网址从
$url = Yii::app()->createUrl('modules/user/login');
至
/login