I am currently developing a facebook canvas (iframe) based application. Is there any way to get Zend framework to output URLs like this:
http://app.facebook.com/appName/controller/action
intead of getting
http://www.domain.com/controller/action ?
It is not so important because due to iframe based app everything is working fine, but I’d like to provide better user experince and getting the url
http://app.facebook.com/appName/
is not user friendly at all. Probably the solution is very easy but I am completely “stack”. The application is devided to modules so I can change sth in Boostrap.php which is probably to hold the solution underneath my nose but I can not see it..:-/
EDIT:
Maybe i did not expressed it as I should have. The problem is not within facebook. The problem is in zend itself. It outputs the original application (e.g. myapp.example.com) URL and I want it to output http://app.facebook.com/myapp
Thanks in advance.
Lukas
Finally, I managed to solve this issue. So for fellow developers I am posting here my solution.
The soulition is to be honest a bit complicated but:
The example of usage can be found in http://framework.zend.com/manual/en/zend.controller.router.html the and then Chain it with classic route like: