Hi I’m just new in codeigniter. My website works locally, but when I uploaded it, I got this error:
An Error Was Encountered Unable to load the requested file: home\home_view.php
Here is my controller:
<?php
class home extends CI_Controller{
function index(){
$data=array();
if($query=$this->home_model->get_dynamic_main_menu())
{
$data[‘main_menu’] = $query;
}
$this->load->view(‘home\home_view’,$data);
}
}
Thanks!
try
$this->load->view('home/home_view',$data);
(and note the " ' " not the " ‘ " that you used)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With