Welcome Guest, Not a member yet? Register   Sign In
wml and html templates
#2

[eluser]Colin Williams[/eluser]
1.) Have two base folders within views: /wml/ and /html/ Each folder will have the same files, just different contents
2.) In your controller constructor, inspect the user agent string to determine the device. Using this determination, change a setting, like $this->base_dir, to 'wml/' or 'html/'
3.) Everytime you are loading a view, prepend $this->base_dir (e.g. $this->load->view($this->base_dir .'template', $data);


Messages In This Thread
wml and html templates - by El Forum - 10-28-2009, 11:16 AM
wml and html templates - by El Forum - 10-28-2009, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB