getValue("logged_in"); $viewData = array( "header" => $headRenderer->render() ); if($userId){ return $view->render("createTopicView.inc", $viewData); } else { return $view->render("logInPromptView.inc", $viewData); } } }