i have a question about the best practice on urls in a zend application. My application will run in two different contexts (facebook and standalone). Normally my baseUrl is empty. But when run in Facebook (as canvas app) I set my baseUrl to be "apps.facebook.com/xxx"... but there are exceptions. Mostly I want the new baseUrl, but sometimes I do not. Currently I strip out the baseUrl, when I do not need it...
Thanks in advance
You can modify baseUrl in e.g. your view as follows:
It is important to remember to save and restore the original base for the baseUrl. Otherwise, all layout may not work properly as helper 'remember' their state and you don't want to change the base for system wide. Hope this will be helpful.