Igniter code Modular extensions - MX_Router :: _ set_default_controller () access level must be public (as in the CI_Router class)

I get popular modular extensions - HMVC is installed from

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

and configure it with codeigniter 2.2.2 BUT , when everything should work fine, I get this error

The access level to MX_Router :: _ set_default_controller () must be public (as in the CI_Router class) in C: .. \ application \ third_party \ MX \ Router.php on line 241

+2
source share
1 answer

Solution 1

Router.php, protected public,

_set_default_controller()
_set_request()
_set_default_controller()

, CodeIgniter

Message: Undefined property: MY_Router::$translate_uri_dashes

a, , :

if(!empty($this->translate_uri_dashes))
        {
            if ($this->translate_uri_dashes === TRUE)
            {
                foreach(range(0, 2) as $v)
                {
                    isset($segments[$v]) && $segments[$v] = str_replace('-', '_', $segments[$v]);
                }
            }
        }

!


2

HMVC-ci,

http://lab.clearpixel.com.au/2011/10/modularise-your-codeigniter-2-applications-with-modular-extensions-%E2%80%93-hmvc/

ci 2.0.3 ci 2.2.2

3 ( )

(MY_Loader MY_Router) (MX) ci 2.0.3 ( ) ci 2.2.2, .

+6

All Articles