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

[Codeigniter] 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 "[Codeigniter] How to return view’s as data in Codeigniter?"

Post a Comment

Contact

Name

Email *

Message *