【发布时间】:2012-06-15 20:44:04
【问题描述】:
每当我在移动设备中加载网站时,我都会在 codeigniter 中收到 Unable to load the requested file: default.php 错误。它在桌面浏览器中完美加载。
这是我的控制器的设置方式,
class Welcome extends CI_Controller {
public function index()
{
$this->template->set_layout('default')->build('welcome_en');
}
}
默认是我用于“welcome_en”视图页面的当前模板的 Sparks 模板。
我一直在尝试解决这个问题一段时间,没有使用用户代理检测脚本,以前有但我把它拿出来希望摆脱错误。
【问题讨论】:
标签: php iphone codeigniter