[eluser]riwakawd[/eluser]
I have been working on codeigniter my loader view change so can shorten the length that can type.
But I would like to be able to have two options for my modules. I use hmvc and the modules I have are admin, catalog, install
For admin and install module to use
Code:
$this->_ci_view_paths = array(APPPATH . 'views/template/' => TRUE
And Catalog module to use this
Code:
$this->_ci_view_paths = array(APPPATH . 'views/theme/' => TRUE
I am not sure the best way to use one loader. But how I can use both locations. I am not sure if it will work I know it works for one only but would like to use 2.
Code:
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
/* load the MX_Loader class */
require APPPATH."third_party/MX/Loader.php";
class MY_Loader extends MX_Loader {
function __construct() {
if($this->_ci_view_paths = array(APPPATH . 'views/template/' => TRUE OR $this->_ci_view_paths = array(APPPATH . 'views/theme/' => TRUE);
$this->_ci_ob_level = ob_get_level();
$this->_ci_library_paths = array(APPPATH, BASEPATH);
$this->_ci_helper_paths = array(APPPATH, BASEPATH);
log_message('debug', "MY_Loader Class Initialized");
}
}