Can't load view as variable |
I'm trying to capture a view as a variable, rather than rendering it, by setting the third argument to TRUE, but this is still rendering the page. Can anybody help? The aim is to send this in an email.
PHP Code: $body = $this->load->view('jobs/send_quote', $data, TRUE); Many thanks in advance.
Hi,
Are you sure you're not calling the _display() function somewhere in your code? BTW, you should show you full code so that it can be easy to debug. (11-26-2020, 07:01 AM)sammyskills Wrote: Hi,Thanks for the speedy response. Here is the full controller, credentials removed. I appreciate it's not the cleanest code. PHP Code: public function send_quote ($job_id)
Read this:
HOW TO SEND EMAIL USING HTML TEMPLATES IN CODEIGNITER What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |