Does this look ok for urlManager

Here’s my print for urlManager:


WB_CUrlManager Object

(

    [rules] => Array

        (

            [aspinner/activate] => aspinner/as_main/activate

            [aspinner/deactivate] => aspinner/as_main/deactivate

            [pennybid/activate] => pennybid/pb_main/activate

            [pennybid/deactivate] => pennybid/pb_main/deactivate

        )


    [urlSuffix] => 

    [showScriptName] => 1

    [appendParams] => 1

    [routeVar] => r

    [caseSensitive] => 1

    [cacheID] => cache

    [useStrictParsing] => 

    [_urlFormat:private] => get

    [_rules:private] => Array

        (

        )


    [_baseUrl:private] => 

    [behaviors] => Array

        (

        )


    [_initialized:private] => 1

    [_e:private] => 

    [_m:private] => 

)

However, the rules are not taken into consideration. Any idea why is that.

P.S. After adding rules I’m also calling the init function of urlManager but still the same results:


Yii::app()->urlManager->init ();

Did you intend to use path format?

No. I’m on default mode: index.php?r=aspinner/activate

Those are modules url’s that’s why they look longer to you probably.

Hi manilodisan,

You have to use "path" as the URL format for the routes to work.