Ocular-Template-Library
Ocular-Template-Library copied to clipboard
Return layout/view as string rather than render to screen
Apologies if I'm missing something really simple here, but I need this functionality and I can't see how it is achieved.
This would be the equivalent of the standard CI $string = $this->load->view('myfile', '', true);
Can somebody point me in the right direction?
Thanks
Hi Matt,
That feature is not built into the system, unfortunately. However, you could use output buffering to capture the information into a variable.