Multiple view loading not working in FF and IE - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Multiple view loading not working in FF and IE (/showthread.php?tid=34393) |
Multiple view loading not working in FF and IE - El Forum - 09-28-2010 [eluser]Acidrain[/eluser] I dont know how this is possible, but when I load multiple views like so: Code: $this->load->view('mydesign/header'); It loads only the header in IE and FF. Content and Footer is not loaded according to page source. Throws no errors either, that view file does not exist or w/e. In Chrome it loads all three, how is this possible? Is it not server side? And not browser based? Multiple view loading not working in FF and IE - El Forum - 09-28-2010 [eluser]WanWizard[/eluser] Check the HTML output in chrome en FF/IE to see what you're missing. Are you generating a doctype complaint page? Multiple view loading not working in FF and IE - El Forum - 09-28-2010 [eluser]Acidrain[/eluser] I found the problem, apparantly multiple views dont want to work with this line at the start of header page: Code: if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); Anyone know why? Multiple view loading not working in FF and IE - El Forum - 09-28-2010 [eluser]Acidrain[/eluser] I guess, I should use CI built in compression setting instead. Code: $config['compress_output'] = FALSE; Will see if that works better. EDIT: Works like charm! Self ask and self answer ftw? o.O |