/** * Set default template * * @return array|string */ public function defaultTemplate() { if (isset($_GET['cut_page'])) { return array('page'); } $page_name = 'page/' . strtolower($this->short_name); // See if we can locate the page try { $p = $this->app->locate('template', $page_name . '.html'); } catch (Exception_PathFinder $e) { return array('page'); } return array($page_name, '_top'); }