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