I have deployed my PHP application built on Codeigniter. When I call the root URL, browser is successfully redirected to login view but not HTML is rendered.
What can be the issue?
I have deployed my PHP application built on Codeigniter. When I call the root URL, browser is successfully redirected to login view but not HTML is rendered.
What can be the issue?
It could be related to the way you load views.
Loading a view this way sends it straight to a browser:
$this->load->view('foo_view.php', $data);
But if you have an optional, third, parameter set to TRUE, it will return data as a string so you have to echo it:
echo $this->load->view('foo_view.php', $data, TRUE);
More info at the bottom of this CI User Guide page.
If nothing is being shown in the browser it is worth checking the following:
There should be proper deployment otherwise you are bound to see issues. This may prove helpful to you.
Deploying CodeIgniter (or any PHP projects) to the live site?