Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的第三方应用程序带有语言支持。 我是否必须“手动”将语言文件夹复制到“应用程序/语言”? 是这样,有什么用$autoload['language'] = array('thirdparty');?
$autoload['language'] = array('thirdparty');
您需要将包路径添加到 codeigniter 加载器:
$this->load->add_package_path(APPPATH.'third_party/foo_bar/');
在您能够正常加载它的语言文件之后:
$this->lang->load('filename', 'language');
看一看:CodeIgniter Loader 类