Url Formating

please help… I want to change http://ws-templates.com/index.php/simple/1 to http://ws-templates.com/index.php/Freewebtemplates/1 without changing controller’s file name


I don’t think that is possible in Yii. You need to configure your webbrowser to rewrite the requested url. If you are using Apache2, then take a look at this.

Yes, this is possible. I’ll assume for a bit your targeted controller is [font=“Courier New”]SimpleController[/font]. Add the following rule to the top of your rule list:

'Freewebtemplates/<id:\d+>' => 'simple/view',

Take al look at the guide for more details.