|
发表于 2011-8-12 17:54:15
|
显示全部楼层
可以,拓展下Loader即可(system/core/Loader.php)。拓展方法参考手册。默认情况下,在Loader的解析函数里面定义了views的路径:
PHP复制代码 /**
* Constructor
*
* Sets the path to the view files and gets the initial output buffering level
*
* @access public
*/
function __construct ()
{
$this->_ci_view_path = APPPATH .'views/';
$this->_ci_ob_level = ob_get_level();
$this->_ci_library_paths = array(APPPATH , BASEPATH );
$this->_ci_helper_paths = array(APPPATH , BASEPATH );
$this->_ci_model_paths = array(APPPATH );
log_message ('debug', "Loader Class Initialized");
}
复制代码
要善于查看代码。
|
|