You could also do this at server level no? In a .htaccess file you could detect
and redirect to mobile subdomain, The subdomain folder on server would
only contain a simple index.php file that bootstraps the app? Saves having to
check every time, especially if you purely want to provide users with a mobile
version of the site, IF they view it via mobile device.
On 19 Mar 2011, at 12:52, is that you john wayne? <[email protected]>
wrote:
> Hector,
>
> I fixed the problem a while back, i didnt use your suggestion as i'm not
> pulling out the view in the plugin. THis is predispatch and asa such the
> View doesnt seem to exist.
>
> TBH the more i think about this the more i'm preferring my solution anyway,
> as it's simple, doesnt require a whole lotta Zend knowledge, i litterally
> resort back to PHP basics. Which will be king in 3 months when i try and
> fix a random bug :)
>
> Thanks for the help, you helped me at least understand a little more about
> the 'joys' of Zend.
>
> -----
> ... or is it me?
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Detect-Mobile-use-Different-View-tp3387303p3389577.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]