Load ion_auth library

edited June 2012 in Modules
I've installed Ion Auth at modules/ion_auth.
I'm using the following to try and load the library:
$this->load->library('ion_auth/ion_auth');

This is giving me the following error:
The configuration file development/ion_auth.php and ion_auth.php do not exist.

Any thoughts what's at issue here?

Comments

  • edited 7:06PM
    That should work. Try:

    $this->load->module_library('my_module', 'my_lib');

    The error seems to point to something inside the loaded library.
  • edited 7:06PM
    Hmm.. I get the same error with both implementation methods... It seems to have something to do with the way ion_auth loads its config file... (/fuel/modules/ion_auth/config/ion_auth.php)..
  • edited 7:06PM
    This is related to the method that ion_auth uses to load its dependencies... these need to be tweaked.. in this case I replaced:

    $this->ci->load->config('ion_auth', TRUE);

    with

    $this->ci->load->module_config('ion_auth', 'ion_auth');

    Also changed the way the library invokes the model (you need to use $this->load->module_model('ion_auth', 'ion_auth_model'))) and disabled the language file (we'll see how this goes..).

    see also:
    http://www.getfuelcms.com/forums/discussion/345/loading-an-advanced-module-s-model-from-another-advanced-module-s-controller/p1
Sign In or Register to comment.