简体   繁体   English

Codeigniter + HMVC + ION_AUTH语言文件加载问题

[英]Codeigniter+HMVC+ION_AUTH language file load issue

I am using CI+HMVC+ION_AUTH on my project, everything works as expected but I am getting following error when I go to the root of the project. 我在项目上使用CI + HMVC + ION_AUTH,一切都按预期工作,但是当我转到项目的根目录时出现以下错误。

Unable to load the requested language file: language/english/ion_auth_lang.php

I searched around but no solutions available. 我四处搜寻,但没有可用的解决方案。 can anyone share some light here please ? 有人可以在这里分享一些光线吗?

Thanks in advance. 提前致谢。

that mean you are loading the file which is not present... or you have an incorrect path.. 这意味着您正在加载不存在的文件...或路径不正确。

make sure you have ion_auth_lang inside >application/language directory 确保> application / language目录中有ion_auth_lang

CodeIgniter will look first in your application/language directory. CodeIgniter将首先在您的application / language目录中显示。 If the directory does not exist or the specified language is not located there CI will instead look in your global system/language folder. 如果该目录不存在或找不到指定的语言,则CI会在全局system / language文件夹中查找。

check how you are loading the lang file.. 检查您如何加载lang文件。

 $this->lang->load('ion_auth_lang.php', 'english');

go through the docs to read more 浏览文档以了解更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM