ewayfly
发表于 2009-5-9 07:14:59
写的简单了一些。
xd45
发表于 2009-7-14 10:56:37
路过路过了
avinmo
发表于 2009-7-23 14:08:54
每次用的$this->load->model('表名_model');表名_model 这是自己建的吗 ??谢谢
yangbing 发表于 2009-4-21 16:00 http://codeigniter.org.cn/forums/images/common/back.gif
是自己建的。。
gjwzjl
发表于 2009-9-25 00:18:15
不是很明白先收藏了再说
zhangtao-5
发表于 2009-10-20 10:19:58
看看,瞧瞧。路过了
phelps_liu
发表于 2009-11-25 11:18:05
:lol:lol:)
super-boy
发表于 2009-12-2 11:59:24
我也要顶!
z445619791
发表于 2010-1-19 16:01:32
class CI_Loader {
// All these are set automatically. Don't mess with them.
var $_ci_ob_level;
var $_ci_view_path = '';
var $_ci_is_php5 = FALSE;
var $_ci_is_instance = FALSE; // Whether we should use $this or $CI =& get_instance()
var $_ci_cached_vars = array();
var $_ci_classes = array();
var $_ci_loaded_files = array();
var $_ci_models = array();
var $_ci_helpers = array();
var $_ci_plugins = array();
var $_ci_varmap = array('unit_test' => 'unit', 'user_agent' => 'agent');
/**
* Constructor
*
* Sets the path to the view files and gets the initial output buffering level
*
* @access public
*/
function CI_Loader()
{
$this->_ci_is_php5 = (floor(phpversion()) >= 5) ? TRUE : FALSE;
$this->_ci_view_path = APPPATH.'views/';
$this->_ci_ob_level= ob_get_level();
log_message('debug', "Loader Class Initialized");
}class CI_Base extends CI_Loader {
function CI_Base()
{
// This allows syntax like $this->load->foo() to work
parent::CI_Loader();
$this->load =& $this;
// This allows resources used within controller constructors to work
global $OBJ;
$OBJ = $this->load; // Do NOT use a reference.
}
}
lioncn
发表于 2011-5-7 15:45:03
wonderful。
紫梦凌云
发表于 2011-11-29 12:00:45
:lol:L:o:P