2011-12-10 4 views

답변

3

URL 관리에 대한 문서를 살펴 보자 (main.php는 응용 프로그램 구성 파일 인 경우) protected/config/main.php, 당신은 것에 설치의 내용을 모른 채

을 다음을 따라 뭔가가 필요합니다.

// note: this is extracted from a project which uses 'friedly urls', 
//  depending on your setup, YMMV 
'urlManager'=>array(
    'urlFormat'=>'path', 
    'showScriptName' => false, 
    'rules'=>array(
     '<controller:\w+>/<id:\d+>'=>'<controller>/view', 
     '/admin'=>'/backend', // <-- define your custom routes/redirects here 
    ), 
), 
관련 문제