From 2204289c4dff6bc62552e6a65eb30f80368c70c0 Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 5 Apr 2014 13:47:15 +0200 Subject: [PATCH] show login form on introduction page only when user is not logged in --- controllers/IntroductionController.inc | 2 ++ views/html/introduction/index.tpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/controllers/IntroductionController.inc b/controllers/IntroductionController.inc index 5fead9cf..4607afb5 100644 --- a/controllers/IntroductionController.inc +++ b/controllers/IntroductionController.inc @@ -28,6 +28,8 @@ */ public function index() { + // Pass data to view + $this->set('userId', $this->Auth->getUserId()); } } diff --git a/views/html/introduction/index.tpl b/views/html/introduction/index.tpl index 007895e4..ef919187 100644 --- a/views/html/introduction/index.tpl +++ b/views/html/introduction/index.tpl @@ -1,6 +1,7 @@

Ein Projekt zum Thema „Gamification im Lehrumfeld“ – basierend auf Die Legende von Zyren.

+

@@ -12,6 +13,7 @@ +

Entwickler