CodeIgniter 中国开发者社区's Archiver
论坛
›
CodeIgniter 问答求助
› 不在同一个文件的两个辅助函数如何相互调用
ywmprogrammer
发表于 2015-3-31 17:27:52
不在同一个文件的两个辅助函数如何相互调用
同题,helper有两个文件test1_helper.php和test2_helper.php ,function test1(){}在第一个文件,function test2(){}在第二个文件,function test2需要调用function test1,请问如何,求大神
yuzhigang5460
发表于 2015-3-31 17:35:29
$CI = &get_instance();
$CI->load->helper('test1');
test1();
页:
[1]
查看完整版本:
不在同一个文件的两个辅助函数如何相互调用