Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]hovhannes[/eluser]
Hello guys ! Thanks for this really awesome lib ! It is nothing less than tonnes of time and nerves economy Smile !

I am using modular separation with ion auth, and i did some changes to ion auth to work with modular separation.
Firstly i moved views files from views/auth directory to views.

Second i changed paths for loading models and libs in constructor of Ion_auth.php library file.

Now it looks like this

Code:
public function __construct()
    {
        $this->ci =& get_instance();
        $this->ci->load->config('auth/ion_auth', TRUE);
        $this->ci->load->library('email');
        $this->ci->load->library('session');
        $this->ci->lang->load('auth/ion_auth');
        $this->ci->load->model('auth/ion_auth_model');
        $this->ci->load->helper('cookie');

        //rest of the code
    }


Before my changes it was

Code:
public function __construct()
    {
        $this->ci =& get_instance();
        $this->ci->load->config('ion_auth', TRUE);
        $this->ci->load->library('email');
        $this->ci->load->library('session');
        $this->ci->lang->load('ion_auth');
        $this->ci->load->model('ion_auth_model');
        $this->ci->load->helper('cookie');

        //rest of the code
    }


Am I on the right way, or there is another way to use ion_auth with modular separation?

Thanks once again, Hov !


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 05-12-2010, 10:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB