Regarding this function in AkActionController: function _authenticationRequest($realm) { header('WWW-Authenticate: Basic realm="' . str_replace('"','',$realm) . '"');
if(method_exists($this, 'access_denied')){
$this->access_denied();
}else{
header('HTTP/1.0 401 Unauthorized');
echo "HTTP Basic: Access denied.\n";
exit;
}
}
I added the following in my project's ApplicationController:
function access_denied() {
echo "test of application_controller:access_denied";
exit;
}
I then executed my project (which includes the Admin plugin) and entered an invalid password. The message displayed is the one from AkActionController, indicating to me that <code>if(method_exists($this, 'access_denied'))</code> returned a false value.
What might I have done wrong, please?
1 to 3 of 3