Пример #1
0
 protected function me()
 {
     echo 'Root: ' . Me::root() . '<br>';
     echo 'URL: ' . Me::url() . '<br>';
     echo 'Domain: ' . Me::domain() . '<br>';
     echo 'Scheme: ' . Me::scheme() . '<br>';
     echo 'Path: ' . Me::path() . '<br>';
     echo 'Query: ' . Me::query() . '<br>';
 }
Пример #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);
     }
 }