Welcome Guest, Not a member yet? Register   Sign In
User agent code for entire application
#1

[eluser]bapobap[/eluser]
Hi there,

Quick question. I have about 4 lines of code that checks if the user agent is a mobile device or a normal browser. It then sets a variable, which I use to include the files necessary to build the view.

My entire application would need to be able to "see" this var but I'm not sure where to put the code so that the var is set when a page is requested then available to all the code throughout my app.

Does anyone have a suggestion on where the best place to put this (and similar code) is? Sorry if I'm not making sense!

Thanks!


Messages In This Thread
User agent code for entire application - by El Forum - 01-08-2008, 04:17 PM
User agent code for entire application - by El Forum - 01-08-2008, 04:33 PM
User agent code for entire application - by El Forum - 01-08-2008, 04:40 PM
User agent code for entire application - by El Forum - 01-08-2008, 04:49 PM
User agent code for entire application - by El Forum - 01-08-2008, 04:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB