|  | 
 
 
 楼主|
发表于 2009-6-29 17:00:38
|
显示全部楼层 
| 就加了这个东西 
 PHP复制代码 复制代码 
function __construct()
        {
                if(phpversion()<5)
                {
                        $this->Model();
                }
                else 
                {
                        $this-> _assign_libraries( (method_exists($this, '__get')  OR method_exists($this, '__set'))  ? FALSE : TRUE );
                
                        // We don't want to assign the model object to itself when using the
                        // assign_libraries function below so we'll grab the name of the model parent
                        $this-> _parent_name = ucfirst(get_class($this)); 
                        log_message('debug', "Model Class Initialized");
                }
        } | 
 |