[eluser]hovhannes[/eluser]
Hello guys ! Thanks for this really awesome lib ! It is nothing less than tonnes of time and nerves economy !
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?