diff --git a/application/configs/navigation.xml b/application/configs/navigation.xml index b3b20c3..e5d0554 100644 --- a/application/configs/navigation.xml +++ b/application/configs/navigation.xml @@ -9,17 +9,24 @@ + default + blog index index - blog - default + + + default + default + portfolio + index + + default + default index about - default - default diff --git a/application/languages/en.ini b/application/languages/en.ini index 0ffd8f4..b81a5aa 100644 --- a/application/languages/en.ini +++ b/application/languages/en.ini @@ -10,4 +10,8 @@ LOGIN_TXT = "Fill out your information below to login.

Th START_TXT = "Welcome to fiktivkod.org. ...." ABOUT_TXT = "Fiktiv (fiktivkod.org) is ... that started ..." -BLOG_TXT = "We at fiktivkod use this blog to tell our stories about happy times and maybe not so happy experience ... " \ No newline at end of file +BLOG_TXT = "We at fiktivkod use this blog to tell our stories about happy times and maybe not so happy experience ... " + + +ERROR_404 = "Oops, something went wrong" +ERROR_TXT_WHAT = "The following went wrong" \ No newline at end of file diff --git a/application/languages/se.ini b/application/languages/se.ini index c83bee5..ffc2d64 100644 --- a/application/languages/se.ini +++ b/application/languages/se.ini @@ -10,4 +10,11 @@ LOGIN_TXT = "Ange dina uppgifter nedan för att logga in.

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('/'); } diff --git a/application/modules/default/controllers/ErrorController.php b/application/modules/default/controllers/ErrorController.php index e8d89ea..c66fbf1 100644 --- a/application/modules/default/controllers/ErrorController.php +++ b/application/modules/default/controllers/ErrorController.php @@ -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()); + } } \ No newline at end of file diff --git a/application/modules/default/views/scripts/auth/login.phtml b/application/modules/default/views/scripts/auth/login.phtml index 5a9691c..2e4a2ea 100644 --- a/application/modules/default/views/scripts/auth/login.phtml +++ b/application/modules/default/views/scripts/auth/login.phtml @@ -2,5 +2,4 @@

translate('LOGIN_TXT') ?>

-form ?> - +form ?> \ No newline at end of file diff --git a/application/modules/default/views/scripts/error/error.phtml b/application/modules/default/views/scripts/error/error.phtml index 852cd8c..34a0bd1 100644 --- a/application/modules/default/views/scripts/error/error.phtml +++ b/application/modules/default/views/scripts/error/error.phtml @@ -1,5 +1,20 @@ -translate('ERROR_404') ?> -var_dump($this->args); +

+ translate('ERROR_TXT_WHAT') ?>: error->exception->getMessage() ?> +

-?> \ No newline at end of file + + + + + + +error->exception->getTrace() as $call): ?> + + + + + + +
translate('u:class') ?>translate('u:function') ?>translate('u:line') ?>
\ No newline at end of file