Error page update mostly play
This commit is contained in:
parent
b5d574ffd3
commit
0f0ee9db2b
7 changed files with 52 additions and 14 deletions
|
|
@ -11,6 +11,11 @@ class AuthController extends Fiktiv_Controller_Action
|
|||
*/
|
||||
public function loginAction()
|
||||
{
|
||||
// Redirect if user is logged in
|
||||
if (Zend_Auth::getInstance()->hasIdentity())
|
||||
$this->_redirect('/');
|
||||
|
||||
|
||||
// Do authentication magic
|
||||
$form = new Zend_Form();
|
||||
|
||||
|
|
@ -62,7 +67,8 @@ class AuthController extends Fiktiv_Controller_Action
|
|||
// Destroy the magic!
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
||||
$auth->clearIdentity();
|
||||
if ($auth->hasIdentity())
|
||||
$auth->clearIdentity();
|
||||
|
||||
$this->_redirect('/');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ class ErrorController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->args = $this->_request->getParams();
|
||||
|
||||
$error = $this->_request->getParam('error_handler');
|
||||
$this->view->error = $this->_request->getParam('error_handler');
|
||||
|
||||
var_dump($error->exception->getTrace());
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -2,5 +2,4 @@
|
|||
|
||||
<p><?=$this->translate('LOGIN_TXT') ?></p>
|
||||
|
||||
<?=$this->form ?>
|
||||
|
||||
<?=$this->form ?>
|
||||
|
|
@ -1,5 +1,20 @@
|
|||
<?php
|
||||
<h1><?=$this->translate('ERROR_404') ?></h1>
|
||||
|
||||
var_dump($this->args);
|
||||
<p>
|
||||
<?=$this->translate('ERROR_TXT_WHAT') ?>: <strong><?=$this->error->exception->getMessage() ?></strong>
|
||||
</p>
|
||||
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<th><?=$this->translate('u:class') ?></th>
|
||||
<th><?=$this->translate('u:function') ?></th>
|
||||
<th><?=$this->translate('u:line') ?></th>
|
||||
</tr>
|
||||
<?php foreach ($this->error->exception->getTrace() as $call): ?>
|
||||
<tr>
|
||||
<td><?=$call['class'] ?></td>
|
||||
<td><?=$call['function'] ?></td>
|
||||
<td><?=$call['line'] ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
Reference in a new issue