无法连接到Codeigniter中的帮助程序 [英] Couldn`t connect to helper in Codeigniter

查看:34
本文介绍了无法连接到Codeigniter中的帮助程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Codeigniter中添加默认帮助程序,键入自动加载 $ autoload ['helper'] = array('url'); 但我有一个错误无法加载请求的文件:我的system/helpers文件夹中的helpers/_helper.php 没有像 _helper.php 这样的文件,我应该怎么加载?

Trying add default helper in Codeigniter, type in autoload $autoload['helper'] = array('url'); But i have an error Unable to load the requested file: helpers/_helper.php on my system/helpers folder there is no such file like _helper.php what i shoul do to load it?

推荐答案

检查是否在application/config/autoload.php中将空数组设置为 $ autoload ['helper'] 变量.

Check whether you have an empty array set to $autoload['helper'] variable in application/config/autoload.php.

$autoload['helper'] = array(''); // throw an error stated

替换为

$autoload['helper'] = array();

即使我不明白为什么它的行为必须不同于以上两个任务,但从根本上讲,IMO应该具有相同的行为.

Even though I do not understand why it has to behave differently from the above two assignments, basically IMO it should behave the same.

这篇关于无法连接到Codeigniter中的帮助程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆