Hi,
How can I extend the CUrlManager? I created the new class, but I don't know where tell to Yii to use the new class. I remember in the config file, but I'm not sure.
Thanks.
Page 1 of 1
Extend the CUrlManager How?
#2
Posted 24 September 2011 - 01:14 PM
Check this similar thread - http://www.yiiframew...p?/topic/13707-
Find more about me.... btw. Do you know your WAN IP?
#3
Posted 24 September 2011 - 01:16 PM
You can tell it to use it in the components section of your main.php file:
'components' => array(
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
array(
'class' => 'path.to.CustomUrlManager',
),
),
),
),
Share this topic:
Page 1 of 1

Help












