[Yii Framework] yii的路由配置

<?php return array( 'class'=>'CUrlManager', 'urlFormat'=>'path', 'urlSuffix'=>'.html', 'showScriptName'=>false, 'caseSensitive'=>false,//it makes route case-insensitive. 'rules'=>array( '/'=>'users/login', 'projects/show/<id:\d+>'=>'projects/show', 'projects/history'=>'projects/list/history', 'projects/edit/<id:\d+>'=>'projects/edit', 'projects/delete/<id:\d+>'=>'projects/delete', 'users/history'=>'users/list/history', 'users/edit/<id:\d+>'=>'users/edit', 'users/delete/<id:\d+>'=>'users/delete', ),);?>

posted @ 2010-04-21 11:53 DavidHHuan 阅读(...) 评论(...) 编辑 收藏