public function index() { $domainHome = array('www.luckyphp.com', 'home.luckyphp.com'); $domain = Me::domain(); if (in_array($domain, $domainHome)) { $data = array(); $root = Me::root(); $static = $root . 'static'; $data['static'] = $static; return Output::template('index/index.html', $data); } else { $data = array(); return Output::template('index/start.html', $data); } }
protected function showPage() { $data = array(); $data['hello'] = 'Hello'; $data['world'] = 'World'; return Output::template('index/start.html', $data); }