lonnieezell / Ocular-Template-Library

A template/layout library for CodeIgniter

Home Page:http://igniteyourcode.com/ocular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return layout/view as string rather than render to screen

matbeard opened this issue · 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

Hi Matt,

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