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をから変換します
$url = Yii::app()->createUrl('modules/user/login');
に
/login