XSLT views |
[eluser]al042077[/eluser]
I'm no expert, but I'd say to do the processing on the server side rather than depending on the client. Perhaps you could merge with an XSL template according to the user agent - one for PC browser, one for mobile phone, and maybe one for just text. I thought about this early on, too, but it felt redundant of the views. You'd be creating a separate XSL template for each user agent anyways, why not just create separate view file and be done. Perhaps develop a naming scheme such as: Quote:browser_my_home.phpThen call the view with a variable (setup earlier as shown in the example at http://ellislab.com/codeigniter/user-gui...agent.html): Code: $this->load->view($agent.'_my_home'); |
Messages In This Thread |
XSLT views - by El Forum - 11-06-2008, 08:06 AM
XSLT views - by El Forum - 08-12-2010, 11:38 AM
|