Welcome Guest, Not a member yet? Register   Sign In
HMVC not work in CI 3.1.3 But works 3.1.2
#8

(01-29-2017, 09:10 PM)luckymahrus Wrote: Yes, it works.. application/core/MY_Loader.php

<?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
{
/** Load a module view **/
public function view($view, $vars = array(), $return = FALSE)
{
list($path, $_view) = Modules::find($view, $this->_module, 'views/');

if ($path != FALSE)
{
$this->_ci_view_paths = array($path => TRUE) + $this->_ci_view_paths;
$view = $_view;
}

return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => ((method_exists($this,'_ci_object_to_array')) ? $this->_ci_object_to_array($vars) : $this->_ci_prepare_view_vars($vars)), '_ci_return' => $return));
}
}

Yes it is !!  Smile Smile
Reply


Messages In This Thread
RE: HMVC not work in CI 3.1.3 But works 3.1.2 - by amilaupathissa - 03-04-2017, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB