public function indexAction() { $this->view->headTitle($this->_headPrefix . "Home Directory"); $home = new Sahara_Home(Sahara_Home::getHomeDirectoryLocation()); if (!$home->isValid()) { $this->view->homeExists = false; return; } $this->view->homeExists = true; $this->view->home = $home; /* Use the flattened contents because directories will not get displayed. */ $home->loadContents(); $this->view->files = $home->getFlattenedContents(); }