Is there any way that I can get content of a PHP file in to variable?
I want to do this
$msg = $this->load->view('some_view');
but when I do this, $msg is NULL.
Is it possible?
Is there any way that I can get content of a PHP file in to variable?
I want to do this
$msg = $this->load->view('some_view');
but when I do this, $msg is NULL.
Is it possible?
$string = $this->load->view('myfile', '', TRUE);
https://codeigniter.com/user_guide/general/views.html#returning-views-as-data