CodeIgniter HMVC object_to_array() error

前端 未结 5 411
陌清茗
陌清茗 2021-01-30 13:40

HMVC : https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/downloads

After downloading CI and copying over the HMVC, I\'m getting the following error:<

5条回答
  •  猫巷女王i
    2021-01-30 14:43

    I got the solution.this is working for me. On Line 300 of application/third_party/MX/Loader.php

    This line generates an error with CI 3.1.3

    return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
    

    Replace with this line.

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

提交回复
热议问题