Ocular-Template-Library icon indicating copy to clipboard operation
Ocular-Template-Library copied to clipboard

Return layout/view as string rather than render to screen

Open matbeard opened this issue 11 years ago • 1 comments

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

matbeard avatar Jul 19 '13 09:07 matbeard

Hi Matt,

That feature is not built into the system, unfortunately. However, you could use output buffering to capture the information into a variable.

lonnieezell avatar Jul 19 '13 14:07 lonnieezell