CodeIgniter Forums

Full Version: Can Views be forced to be sent?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Is there a method or something to call for views to be rendered on call. I mean besides doing return $this->load->view('my_view');

I'd like to use such a method from within my library

El Forum

Did you try this:

$this->load->view('myfile', '', false);

setting a third parameter to "false" should output the view directly
according to the user guide.

El Forum

[eluser]TWP Marketing[/eluser]
[quote author="micha8l" date="1344589985"]
I mean besides doing return $this->load->view('my_view');

Don't use return
Just using
is sufficient.
By default CI will render the view to the browser.