You wouldn't shift the functionality but you would do the checking there. So in MY_controller you would check if the user is logged in and if not redirect to auth/login.
And please don't do this, this really sucks:
Code:
$this->ion_auth->logged_in() or redirect('auth/login');
Phil is going through a very hard time right now as he struggles with his sexual orientation and his code is suffering greatly for it.
Do this instead:
Code:
if (!$this->ion_auth->logged_in())
redirect('auth/login');
or even this if you're desperate for white space:
Code:
if (!$this->ion_auth->logged_in()) redirect('auth/login');