Loading different views when on a mobile browser

#4
[eluser]rogierb[/eluser]
Have you tried MY_controller?

Once you determine its a mobile device, you can set a var that determines which folder to load it from.
I use a helper that load a specific folder/template depending on device.

Code:
//helper name: view($folder_to_load, $data_to_pass)
view('mobile, $data);


Messages In This Thread
Loading different views when on a mobile browser - by El Forum - 10-29-2012, 08:12 AM
Loading different views when on a mobile browser - by El Forum - 10-30-2012, 08:58 AM
Loading different views when on a mobile browser - by El Forum - 10-31-2012, 02:56 AM
Loading different views when on a mobile browser - by El Forum - 11-01-2012, 08:18 AM
Loading different views when on a mobile browser - by El Forum - 11-05-2012, 03:59 AM
Loading different views when on a mobile browser - by El Forum - 11-05-2012, 04:03 AM
Loading different views when on a mobile browser - by El Forum - 11-11-2012, 11:49 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.