zbrphp 发表于 2015-9-17 11:43:19

$CI->load->library('xxx');问题

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;
        }
页: [1]
查看完整版本: $CI->load->library('xxx');问题