Welcome Guest, Not a member yet? Register   Sign In
Passing language strings to Javascript, view organization help
#6

(01-21-2015, 02:08 PM)CroNiX Wrote: You can capture the output of a view by setting the 3rd parameter of $this->load->view(), to TRUE.

$captured_view = $this->load->view('view_file', $data, TRUE); //doesn't output to browser, but returns the rendered view
SWEET. I only just saw this. Had been looking into writing my own function but was concerned about how it might interrupt output.
Reply


Messages In This Thread
RE: Passing language strings to Javascript, view organization help - by sneakyimp - 01-22-2015, 02:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB