[eluser]JulianM[/eluser]
Hi,
This is my _remap function in a base controller class (MY_Controller). I placed the _remap in a base controller so I don't need to re-write it on each class.
Please check you are not redirecting to the same every time the authorization = false. If it don't work, can you please give me further information about how you are using it?
Quote: // new remap function in 0.6, method is called including arguments now
function _remap($method) {
$auth = $this->ezauth->authorize($method, true);
if ($auth['authorize'] == true) {
// redirect with method arguments
// by marlar on CodeIgniter forums
$segments = array_slice($this->uri->segment_array(),2);
call_user_func_array(array(&$this, $method), $segments);
} else {
// user login information incorrect, so show login screen again
redirect('user/login');
}
}
[quote author="Biktor" date="1235634716"]Thanks for the fast response.
My codeigniter is Version 1.7
I'm in Apache in Windows Xp SP2....[/quote]