benedmunds / CodeIgniter-Ion-Auth

Simple and Lightweight Auth System for CodeIgniter
http://benedmunds.com/ion_auth/
MIT License
2.35k stars 1.14k forks source link

Not working with hmvc #1139

Closed jibinprabha closed 6 years ago

jibinprabha commented 6 years ago

I tried to implement this on hmvc codeigniter. It worked perfectly on localhost. But i'm getting error on live server. Its not working there. issue with undefined model auth_model

Humni commented 6 years ago

Please provide more detail (e.g. the whole error and steps to reproduce) otherwise no one can help you or confirm that this is actually a bug.

jibinprabha commented 6 years ago

Click this link and you can see the Error Below showing code is my library construct `public function __construct() { $this->config->load('ion_auth', TRUE); $this->load->library(array('email')); $this->lang->load('ion_auth'); $this->load->helper(array('cookie', 'language','url'));

    $this->load->library('session');

    $this->load->model('Auth/Ion_auth_model');

    $this->_cache_user_in_group =& $this->ion_auth_model->_cache_user_in_group;

    $email_config = $this->config->item('email_config', 'ion_auth');

    if ($this->config->item('use_ci_email', 'ion_auth') && isset($email_config) && is_array($email_config))
    {
        $this->email->initialize($email_config);
    }

    $this->ion_auth_model->trigger_events('library_constructor');
}`

My model name and controller names are started with Capital letters. And also i tried with small letter. if i remove this ion auth module the hmvc will work without any erros. But it is working in localserver. Please help me to fix this issue.

jibinprabha commented 6 years ago

Actually i found the error. The path is missing on line number 213 in mx loader(third party).

Altroo commented 6 years ago

same issue i don't know how to make it work with modular HMVC

benedmunds commented 6 years ago

Closing due to inactivity. Plus I don't provide support for HMVC. I'd recommend posting to the CI forums or StackOverflow if the problem persists.

Altroo commented 6 years ago

There's a friend who has fixed it for HMVC : forked version. https://github.com/AXeL-dev/CodeIgniter-Ion-Auth-HMVC