[Help] Urlmanager

Hi All,

(Sory for my English)

I have url like: webapp/index.php?r=site/ListNews&id=1&name=abc

I want it like: webapp/list-new

I try




'urlManager'=>array(

            'urlFormat'=>'path',

            'urlSuffix'=>'.html',

            'caseSensitive'=>false,

            'showScriptName'=>FALSE,

            'rules'=>array( 

                'list-new' => array('site/ListNews'),

                '<controller:\w+>/<id:\d+>'=>'<controller>/view',

                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

            ),

        ),



But result is webapp/list-new.html?id=1&name=abc

Please help me!

Thank you for your help

Thanks for your help.

But it error

Can you give me "application.components.SlugUrlRule"?

Try doing it.




'urlManager'=>array(

            'urlFormat'=>'path',

            'urlSuffix'=>'.html',

            'caseSensitive'=>false,

            'showScriptName'=>FALSE,

            'rules'=>array( 

                [b]'webapp/ListNews' => 'webapp/list-new',[/b]

                '<controller:\w+>/<id:\d+>'=>'<controller>/view',

                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

            ),

        ),