This site uses cookies from Google to deliver its services, to personalize ads and to analyze traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. Learn More

How to Return View’s As Data In Codeigniter?

How to Return View’s As Data In Codeigniter? Codeigniter,php How to Return View’s As Data In Codeigniter?

View’s can be returned as data with a third parameter ( setting to TRUE) as follows

 $output = $this->load->view('view', $data, TRUE); 

You can use this option for many purposes. I have used it for constructing downloads and to grab and print complete html template. You can used it to build PDFs with the help of some custom libraries or function.

0 Response to "How to Return View’s As Data In Codeigniter?"

Posting Komentar

Contact

Nama

Email *

Pesan *