[Facebook] how to change all base urls link?

Now every urls are: http://www.mysite.com/myapp/index.php?r=blablabla

I’m developing a facebook application so I need to have urls like this: http://apps.facebook.com/myapp/index.php?r=blablabla

how can I do?

Search in the documentation for the following methods. This should help you solve your issue.

createUrl()

createAbsoluteUrl()

getHostInfo()

I think this can help but I need to change ALL urls. So I think I need to edit something in the config, but I don’t know what

overwrite createUrl-Method in your controller or create a baseController for all your FaceBookControllers that overwrites createUrl-Method

The problem is that I need to change the url generated by all the new zii extensions, like for CGridView pager and sorter.

Hi,

How did you solve the problem finally?

I am trying to do the same…

I would like all my url starting with apps.facebook.com/myapp/

Thanks