更改登錄消息我使用CakePHP 1.3,我想改變這個消息:如何在CakePHP中
您無權訪問該位置。
至(例如):
哦抱歉
從該代碼將顯示消息:
回聲$這 - >會話級>閃光(」 AUTH');
我改變app_controller到
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.";
}
}
但尚未我面對相同的消息。
我將你的代碼添加爲弓,但我面臨同樣的消息 – aya