Ok I have a file that I am loading that is being used for generating an email.
Is there a way to pass it variables, and to populate the file with the values of the variables, and THEN plug it into the message body to send?
Here is simple controller code:
$var = 'test';
$ci->load->file('Test/view/dialog.php',true);
HTML file:
<strong><?php echo $var; ?></strong>
Note that dialog.php file is in root directory in "Test" dir, so I can't use $this->load->view();
I looked in Loader.php and It seems that file() method can't do that. Maybe there is any other solutions to do this?
Sorry for bad English language