I'm in the process of adding mobile support to one of my ZF applications. This 
will basically consist of a simple user agent check to determine if the visitor 
is using a supported device, and then a selection of which set of layouts/views 
to serve them. I'm wondering if there is a suggested directory layout for this 
type of config. I'm thinking the most logical choice is to make a second 
scripts directory, with contents that mirror the default one:
views/scripts/layout.phtmlviews/scripts/index/index.phtmlviews/scripts-mobile/layout.phtmlviews/scripts-mobile/index/index.phtml
Or would this be preferable:
views/scripts/default/layout.phtmlviews/scripts/default/index/index.phtmlviews/scripts/mobile/layout.phtmlviews/scripts/mobile/index/index.phtml
Not a big deal either way to me, just wondering if some ZF-approved precedent 
has already been set here.                                          
_________________________________________________________________
Find the right PC with Windows 7 and Windows Live. 
http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009

Reply via email to