Welcome Guest, Not a member yet? Register   Sign In
echos and load-view
#1

[eluser]eluzyon[/eluser]
Hello everyone!

I'm getting a strange behavior in a controller.

This is an example code in a controller function:

Code:
$this->load->view("view1");
echo "something";
$this->load->view("view2");

the "something" should be between view1 and view2 but it actually renders before both views.

Do you know what it may be?

Thanks everyone and happy holidays!!
#2

[eluser]eluzyon[/eluser]
Sorry guys, this was probably a very noob topic!
Already solved it by not echoing in the controller but in one of the views it self.

Thanks!!




Theme © iAndrew 2016 - Forum software by © MyBB