public function init() { parent::init(); $search_ui = new SwatUI(); $search_ui->loadFromXML(dirname(__FILE__) . '/browser-search.xml'); $this->layout->startCapture('search_content'); $search_ui->display(); $this->layout->endCapture(); }
public function init() { parent::init(); if (!isset($_GET['source'])) { return; } $source_exp = explode('/', $_GET['source']); if ($source_exp[0] == 'archives') { $this->relocateArchive(); } if ($source_exp[0] == 'a') { $this->relocateArticle(); } elseif ($source_exp[0] == 'authors') { $this->relocateAuthor(); } elseif ($source_exp[0] == 'rss') { $this->relocateFeed(); } elseif (substr($_GET['source'], 0, 9) == 'index.cfm') { $this->relocateReallyOldPage(); } }