ci = & get_instance(); $this->app_id = $app_id; } /** * * @param $name * @return mixed * User: xuxianbin */ public function __get($name) { if('_model' === substr($name, -6)){ return $this->ci->$name; } elseif('load' == $name){ return $this->ci->load; } return null; } abstract function init($app_id); }