//test
/* * 控制器中载入其他控制器 * * * */ public function controllers($class,$name=''){ $this->is_loaded($class); require_once APPPATH.'controllers/'.$class.'.php';// echo APPPATH.'controllers/'.$class.'.php';// exit; if($name==''){ $name=$class; } $CI =& get_instance(); if (isset($CI->$name)) { show_error('The controller name you are loading is the name of a resource that is already being used: '.$name); exit; } $CI->$name = new $class(); return; // couldn't find the model show_error('Unable to locate the controllers you have specified: '.$class); }//加在ci /system/core/loder.php