Welcome Guest, Not a member yet? Register   Sign In
Extending CI_Loader - how to access CI Models?
#3

[eluser]Sam Granger[/eluser]
I want visitors on mobile phones to see a different view "theme" - currently have a getTheme function in a Model named Theme. This function checks agent->is_mobile and from there it returns which folder the controller should load its views from ($this->load->view($this->theme->getTheme() . 'view_file'))

I was wondering if I could just override the view function with this functionality - not sure what the best solution would be in this case?


Messages In This Thread
Extending CI_Loader - how to access CI Models? - by El Forum - 07-23-2010, 12:55 PM
Extending CI_Loader - how to access CI Models? - by El Forum - 07-23-2010, 01:11 PM
Extending CI_Loader - how to access CI Models? - by El Forum - 07-23-2010, 01:16 PM
Extending CI_Loader - how to access CI Models? - by El Forum - 07-23-2010, 01:45 PM
Extending CI_Loader - how to access CI Models? - by El Forum - 07-23-2010, 02:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB