40 public function __construct()
42 parent::__construct(self::NAME, array(
43 self::TITLE => _(
"Demo Hello World"),
44 self::MENU_LIST =>
"Help::Demo::Hello World",
59 return _(
"You are not logged in");
63 return $userDao->getUserName($user_pk);
69 protected function handle(Request $request)
71 $UserName = $this->
WhoAmI();
73 $OutBuf =
"<h2>$Hello $UserName </h2>";
74 $OutBuf .= _(
"Wasn't that easy?");
76 return $this->
render(
'include/base.html.twig', $this->mergeWithDefault(array(
'message' => $OutBuf)));
static getUserId()
Get the current user's id.
render($templateName, $vars=null, $headers=null)
WhoAmI()
Find out who I am from my user record.
UI component for demomod (Visible in menu)
handle(Request $request)
Generate response.