示例#1
0
 public function showJSON()
 {
     $data = array();
     $data['hello'] = 'Hello';
     $data['world'] = 'World';
     View::showJSON($data);
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
文件: test.php 项目: im286er/LuckyPHP
 protected function upload()
 {
     $data = array();
     $data['root'] = Me::root();
     return View::html('test/upload.html', $data);
 }