public static function show($data, $isExit = false) { Output::text('<pre>'); var_dump($data); Output::text('</pre>'); if ($isExit) { exit; } return true; }
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 showJSON() { $data = array(); $data['hello'] = 'Hello'; $data['world'] = 'World'; return Output::json($data); }