public function render($route = self::DEFAULT_BASEURL, array $arguments = array())
{
// Prepare argument input ...
$this->parseArguments($arguments);
$action = $this->getAction();
$this->processRequestOperations($action, $arguments);
// Now check for action
switch ($action) {
case self::ACTION_DASHBOARD:
case self::ACTION_HOST_DETAILS:
case self::ACTION_DATA_MANAGEMENT:
case self::ACTION_MEMORY_DETAILS:
case self::ACTION_ABOUT:
break;
case self::ACTION_LOGOUT:
header('Location: ' . $this->getLinkForAction(self::ACTION_NEUTRAL));
exit;
default:
// Intentionally left blank
break;
}
// send headers
header('Content-Type: text/html; charset=utf-8');
// Return rendered HTML(5)
return $this->renderTemplate($this->loadTemplates($this->actionToTemplates($action)), array('content' => $this->getContent($action), 'message' => $this->getMessages()));
}