Multiple view loading not working in FF and IE

#1
[eluser]Acidrain[/eluser]
I dont know how this is possible, but when I load multiple views like so:

Code:
$this->load->view('mydesign/header');
$this->load->view('mydesign/content');
$this->load->view('mydesign/footer');

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?

#2
[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?

#3
[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?

#4
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.