CodeIgniter Forums
CI doesn't return the view buffer - 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: CI doesn't return the view buffer (/showthread.php?tid=39475)



CI doesn't return the view buffer - El Forum - 03-11-2011

[eluser]Unknown[/eluser]
my problem is when i load a view file , it sends it directly to the browser instead of returning it :

Code:
$output=$this->load->view('topic', $data, TRUE);

I'm using CI 2 and I haven't touched the core classes .

what is wrong ?

----
Update :
I've two controllers .each controller extend another controller before it extend the CI_Controller such as :

topics_admin extends Backend(which extends CI_controller)
topics extends Frontend (which extends CI_controller)

the first controller behaves as expected but the second one has the problem i've explained
there is no major difference between the 2 Frontend & Backend controllers .


CI doesn't return the view buffer - El Forum - 03-11-2011

[eluser]Unknown[/eluser]
I've found it .
There was undefined function in the view
and it didn't show the error message because the function was in a tag attribute like that :

Code:
<a href="&lt;?=member_url()?&gt;/topics">Title</a>



CI doesn't return the view buffer - El Forum - 03-11-2011

[eluser]Unknown[/eluser]
Good work Wink