Hi Matthew, Thanks for such a prompt post! After looking over the contextswitcher, I have a few more questions. It seems like the context switcher is only for changing the view format (like from .phtml to xml?). how do you use it to switch out views? I want to keep the "iphone.domain.com" url to allow users online to view the iphone version of it.
Should I be pointing the subdomain to the main directory? or should the views come directly from the subdomain folder? Again, thanks for your time. Matthew Ratzloff wrote: > > http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.contextswitch > > -Matt > > On Sat, May 3, 2008 1:30 pm, draketherake wrote: > >> I want to have a regular version of my website and an iphone version at a >> subdomain of iphone.domain.com. However, I don't want to maintain two >> completely separate sites. What's the best way to keep separate views but >> re-use all the controllers? >> >> first method: have all views in the main directory with separate folders >> "main" and "iphone". And have the .htaccess file in the iphone.domain.com >> reroute to the main directory bootstrap file? >> >> second method: have the iphone views inside the subdomain directory and >> point my bootstrap file to the controllers in the main directory. >> >> please help! > > > -- View this message in context: http://www.nabble.com/zend-%2B-iphone-subdomain-tp17039507p17039711.html Sent from the Zend Framework mailing list archive at Nabble.com.
