CodeIgniter:无法加载请求的文件: [英] CodeIgniter : Unable to load the requested file:
本文介绍了CodeIgniter:无法加载请求的文件:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我只是在codeigniter的新。我的网站在本地工作,但是当我上传它,我得到这个错误:
Hi I’m just new in codeigniter. My website works locally, but when I uploaded it, I got this error:
遇到错误
无法加载请求的文件:home\home_view .php
An Error Was Encountered Unable to load the requested file: home\home_view.php
以下是我的控制器:
<?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);
}
}
谢谢! / p>
Thanks!
推荐答案
尝试
$this->load->view('home/home_view',$data);
(注意'不是您使用的')
(and note the " ' " not the " ‘ " that you used)
这篇关于CodeIgniter:无法加载请求的文件:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文