CodeIgniter Forums
Cannot get the contents of a view ($this->load->view('view', $data, true) returns empty string - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Cannot get the contents of a view ($this->load->view('view', $data, true) returns empty string (/showthread.php?tid=47116)



Cannot get the contents of a view ($this->load->view('view', $data, true) returns empty string - El Forum - 11-27-2011

[eluser]Unknown[/eluser]
It appears that if the file that i'm loading (the view) is less than some amount of characters like 200 chars or so the i get the view returned into string but if I increase the file size to say 300 chars it returns empty string. If i use $this->load->view('view', $data,false) the file gets outputed correctly. I tried using ob_start() myself and ob_get_contents() return empty string. If i do this outside codeigniter's project it works perfectly.