欢迎各位兄弟 发布技术文章
这里的技术是共享的
创建 common_helper.php 文件,定义所需公共函数,存放至 application/helpers 目录中。
common_helper.php
application/helpers
在 application/config/autoload.php 中配置 $autoload['helper'] = array('common'); 即可。来自 http://blog.sina.com.cn/s/blog_6ec2ae9001014v1p.html
application/config/autoload.php
$autoload['helper'] = array('common');