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