Tuesday, 20 August 2013

Is there a way to redirect to a specific page using Tank_auth in Codeigniter?

Is there a way to redirect to a specific page using Tank_auth in Codeigniter?

I'm wondering if there's a way to redirect to a specific page (like
adminpanel_view) in Tank_auth. I looked at the Auth.php controller but
could not figure out how to redirect, if it's even possible..
I tried this:
public function login() //login functie
{
$this->breadcrumbs->page = array('link'=> base_url().'auth/login'
,'title' => 'Login');
$data['breadcrumbs'] = $this->breadcrumbs->get();
if ($this->tank_auth->is_logged_in()) {
// logged in
redirect('members/cpanel');
}

No comments:

Post a Comment