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

[版本 3.x] $CI->load->library('xxx');问题

[复制链接]
发表于 2015-9-17 11:43:19 | 显示全部楼层 |阅读模式
public function items_creat(){

                $CI =& get_instance();
                $CI->load->library('location');
                $location = new Location();
                $obj = $location->location_create();

                $CI->load->library('content');  //为什么这个加载不进来?
                $content = new Content();
                $cobj = $content->content_create();
              // $cobj为什么一直为空?
                $items = array();
                $items['location'] = $obj;
                $items['content'] = $cobj;
                return $items;
        }

本版积分规则