function displayData($data)
 {
     $template_path = '/home/tenantstogether/public_html/custom/hotline/templates/hotline_template.html';
     $template = new Template($template_path);
     $menu_view = new MenuDisplay();
     $content_view = $this->chooseDisplayAction();
     return $template->execute(array('menu' => $menu_view->execute(), 'body' => $content_view->execute($data)));
 }
Example #2
0
 public function request($path_args)
 {
     $tpl = new Template("findAreas.xhtml");
     $tpl->limit = $limit = 20;
     $tpl->offset = $offset = Util::GetInt('offset', 0);
     $tpl->results = $results = RO_Zone::findByName(Util::GetString('name', ''), RO_Realm::mapRegions(explode(',', Util::GetString('regions', ''))));
     $tpl->moreresults = count($results) > $offset + $limit;
     return array('offset' => $offset, 'limit' => $limit, 'total' => count($results), 'html' => $tpl->execute());
 }
 public static function request($path_args)
 {
     $tpl = new Template("getKillsToLevelByArea.xhtml");
     $tpl->limit = $limit = 20;
     $tpl->offset = $offset = Util::GetInt('offset', 0);
     $tpl->results = $results = RO_Mob::findKillsToLevelByArea(Util::GetInt('player_level', 1), Util::GetInt('player_xp', 0), Util::GetInt('min_level', 1), Util::GetInt('max_level', 3), RO_Realm::mapRegions(explode(',', Util::GetString('regions', ''))));
     $tpl->moreresults = count($results) > $offset + $limit;
     return array('offset' => $offset, 'limit' => $limit, 'total' => count($results), 'html' => $tpl->execute());
 }
Example #4
0
 function template($template, $tokens)
 {
     $tpl = new Template($template);
     return $tpl->execute($tokens);
 }