에서 로그인 메시지를 변경하려면 어떻게 CakePHP는 1.3 사용하고 난이 메시지를 변경하려면 : 당신은 그 위치에 액세스 할 수있는 권한이 없습니다CakePHP의
합니다.
에 (예를 들어) :
죄송 오
메시지는이 코드에서 나타납니다
:
는 에코 $ this-> 세션 -> 플래시 (' auth ');
제가
class AppController extends Controller {
var $components = array('Auth', 'Session', 'Acl');
function beforeFilter() {
$this->Auth->authorize = 'actions';
$this->Auth->autoRedirect = false;
if ($this->params['controller'] == 'pages') {
$this->Auth->allow('*');
}
$this->Auth->allow('pages');
$this->Auth->loginError = "This message shows up when the wrong credentials are used";
$this->Auth->authError = "This error shows up with the user tries to access a part of the website that is protected.";
}
}
에 app_controller 변경 아직 나는 동일한 메시지를 직면한다.
활처럼 코드를 추가하지만 동일한 메시지가 나타납니다. – aya