2014-01-09 1 views
0

url :/profile/profileBase/index 여기서 "profile"은 모듈이고 "profileBase"는 컨트롤러이고 "index"는 작업입니다. 관리자가 다음과 같은 경로를 허용하도록 URL을 지정하고 싶습니다./profile/read/index 여기서 "read"는 컨트롤러의 별칭 일 수 있습니다. URL 관리자 규칙을 사용하여이를 수행 할 수있는 방법이 있습니까? 감사Yii를 사용한 URL 관리

답변

1
'urlManager' => array(
     'urlFormat' => 'path', 
     'showScriptName' => false, 
     'rules' => array(
      'profile/read/index '=>'profile/profileBase/index' 
     ), 
    ), 
0

당신은 단순히 urlManager 설정에 다음과 같은 규칙을 추가해야합니다

'profile/read/index'=>'profile/profileBase/index',