From b99d7a884edabd9e5d297c8117ee7552ca702b96 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 16 Mar 2011 13:01:28 +0100 Subject: Arbeiten am Clientcontroller, Membership in Auth gesetzt --- .../modules/user/controllers/IndexController.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'application/modules/user/controllers/IndexController.php') diff --git a/application/modules/user/controllers/IndexController.php b/application/modules/user/controllers/IndexController.php index d39ff21..8b295e0 100644 --- a/application/modules/user/controllers/IndexController.php +++ b/application/modules/user/controllers/IndexController.php @@ -2,17 +2,26 @@ class User_IndexController extends Zend_Controller_Action { - public function init() { /* Initialize action controller here */ } - public function indexAction() - { - + public function indexAction() + { + if (!Zend_Auth::getInstance()->hasIdentity()) { + $this->view->text = 'Your not logged in, please log in first here.'; + } + else{ + $this->view->text = "You're Welcome"; + $links = array( + '/user/person' => 'Change your Details', + '/user/person/request' => 'Request Membership in a Group', + '/user/config' => 'Create your own Configuration', + '/user/bootmenu' => 'Create your Bootmenu', + ); + } + $this->view->links = $links; } - - } -- cgit v1.2.3-55-g7522