
CI
包包包小姐
这个作者很懒,什么都没留下…
展开
-
CI3.* 获取控制器名、方法名
# 控制器名$this->router->fetch_class();# 方法名$this->router->fetch_method();如何在自定义公共方法内调用呢?# 先在自定义方法中添加$CI = &get_instance();# 控制器名$CI->router->fetch_class();# 方法名$CI-...原创 2020-03-24 17:53:03 · 344 阅读 · 0 评论 -
CI3.* 创建公共方法
创建公共方法放在system/helpers比如文件名为common_helper.php调用$this->load->helper('common');原创 2020-03-24 17:41:24 · 259 阅读 · 0 评论