'urlManager'=>array(
'urlFormat'=>'path',
'rules' =>array(
'building' =>array('building/index','urlSuffix'=>'.html'), // http://lihao.com/cesshi/shiyong/index.php/building.html
'del/<id:d+>' =>'building/del', ////http://lihao.com/cesshi/shiyong/index.php/del/8
'del/<id:d+>/<buname:[a-z]+>' =>'building/del', //http://lihao.com/cesshi/shiyong/index.php/del/8/zhangsan
),
),
解析:
你看到的url地址 => 对应的控制器
urlSuffix 后缀