I have a Controller in CodeIgniter with the following code:
$this->load->view("first");
echo "LOL";
$this->load->view("second");
But strangely, when the page is rendered, the HTML is:
LOL
<div id="firstView"></div>
<div id="secondView"></div>
I have no idea what could be causing this reordering of the statements. Any suggestions? Might I have overlooked something?