CodeIgniter HMVC object_to_array() error

前端 未结 5 503
陌清茗
陌清茗 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条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 14:34

    Found this Use this place in application / core / MY_Loader.php

    From here https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/pull-requests/17/fix-loaderphp-for-ci-313/diff#comment-30560940

    _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));
        }
    }
    

提交回复
热议问题