I am using the ion auth library for the CodeIgniter HMVC, I have copied all files from ion auth library to main CodeIgniter files but the controller, model, and views files copy to module directory Now it's showing me this error.
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Auth::$ion_auth_model
Filename: libraries/Ion_auth.php
Line Number: 122
Backtrace:
File: /opt/lampp/htdocs/CI_Hmvc/application/libraries/Ion_auth.php Line: 122 Function: _error_handler
File: /opt/lampp/htdocs/CI_Hmvc/application/libraries/Ion_auth.php Line: 70 Function: __get
File: /opt/lampp/htdocs/CI_Hmvc/application/third_party/MX/Loader.php Line: 173 Function: _ci_load_library
File: /opt/lampp/htdocs/CI_Hmvc/application/third_party/MX/Loader.php Line: 192 Function: library
File: /opt/lampp/htdocs/CI_Hmvc/application/third_party/MX/Loader.php Line: 153 Function: libraries
File: /opt/lampp/htdocs/CI_Hmvc/application/modules/home/controllers/Auth.php Line: 9 Function: library
File: /opt/lampp/htdocs/CI_Hmvc/index.php Line: 315 Function: require_once
could anybody tell me how to load the model, when I work as modules?