[eluser]Unknown[/eluser]
To use the two together have made the following changes
MY_Loader in grocery
Defualt:
Code:
<?php
class MY_Loader extends CI_Loader {
Changed:
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 {
AND
grocery_crud.php Line 1184
Default:
Code:
private function _theme_view($view, $vars = array(), $return = FALSE)
{
$ci = &get;_instance();
$orig_view_path = $ci->load->_ci_view_path;
$ci->load->_ci_view_path = $this->theme_path.$this->theme.'/';
if($return)
{
$return_view = $ci->load->view($view,$vars,true);
$ci->load->_ci_view_path = $orig_view_path;
return $return_view;
}
else
{
$ci->load->view($view,$vars);
$ci->load->_ci_view_path = $orig_view_path;
}
}
Changed:
Code:
private function _theme_view($view, $vars = array(), $return = FALSE)
{
$ci = &get;_instance();
$orig_view_path = $ci->load->_ci_view_path;
$ci->load->_ci_view_path = $this->theme_path.$this->theme.'/';
if($return)
{
$return_view = $ci->load->view($view,$vars,TRUE,TRUE);
$ci->load->_ci_view_path = $orig_view_path;
return $return_view;
}
else
{
$ci->load->view($view,$vars,FALSE,TRUE);
$ci->load->_ci_view_path = $orig_view_path;
}
}
And
loader.php in third_party\MX Line 251
Default:
Code:
/** Load a module view **/
public function view($view, $vars = array(), $return = FALSE) {
list($path, $view) = Modules::find($view, $this->_module, 'views/');
$this->_ci_view_path = $path;
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
}
Changed:
Code:
/** Load a module view **/
public function view($view, $vars = array(), $return = FALSE,$Default = FALSE) {
if($Default)
{
return parent::view($view,$vars,$return);
}
list($path, $view) = Modules::find($view, $this->_module, 'views/');
$this->_ci_view_path = $path;
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
}
other solutions?
sorry for my bad english