Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Codeigniter HMVC MY Loader View Path Change
#2

[eluser]riwakawd[/eluser]
The best way to be able to choose view paths is to make it as an array. If use MX Codeigniter HMVC. It works fine I just have tested it out. For multiple paths that is. Or you can use just the one.

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() {
        $this->_ci_view_paths = array(
            APPPATH . 'modules/install/views/template/' => TRUE,
            APPPATH . 'modules/admin/views/template/' => TRUE,
            APPPATH . 'modules/catalog/views/template/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");
    }

}


Messages In This Thread
[SOLVED] Codeigniter HMVC MY Loader View Path Change - by El Forum - 07-09-2014, 06:18 AM
[SOLVED] Codeigniter HMVC MY Loader View Path Change - by El Forum - 07-09-2014, 07:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB