用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1065|回复: 1
收起左侧

[HELP] 不在同一个文件的两个辅助函数如何相互调用

[复制链接]
发表于 2015-3-31 17:27:52 | 显示全部楼层 |阅读模式
同题,helper有两个文件test1_helper.php和test2_helper.php ,function test1(){}在第一个文件,function test2(){}在第二个文件,function test2需要调用function test1,请问如何,求大神
发表于 2015-3-31 17:35:29 | 显示全部楼层
PHP复制代码
 
$CI = &get_instance();
$CI->load->helper('test1');
test1();
 
 
 
复制代码

本版积分规则