Ejemplo n.º 1
1
 /**
  * Shows the dashboard view
  */
 public function indexAction()
 {
     $this->view->menu = Menus::findFirst(array('conditions' => 'id = ?1', 'order' => 'name', 'bind' => array(1 => 1)));
     $this->view->devices = Devices::find(array('order' => 'name ASC'));
     $this->view->movies = KodiMovies::getLatestMovies();
     $this->view->albums = KodiMusic::getLatestAlbums();
     $this->view->episodes = KodiTVShowEpisodes::getLatestEpisodes();
     $this->executionTime = -microtime(true);
     $this->view->phpsysinfoData = PHPSysInfo::getData($this->config);
     $this->view->PHPSysinfoExecutionTime = round($this->executionTime + microtime(true), 2) . 's';
 }
Ejemplo n.º 2
0
 public function indexAction()
 {
     header('Content-Type: application/xml; charset=UTF-8');
     $url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off" ? "https" : "http") . '://' . $_SERVER['HTTP_HOST'];
     $url .= $this->config->application->baseUri;
     $this->view->setMainView('layouts/rss_layout');
     $this->view->baseURL = $url;
     $this->view->phpsysinfoData = PHPSysInfo::getData($this->config);
 }