public function render404 () { header ('HTTP/1.0 404 Not Found'); $data = array ('url' => $_SERVER['REQUEST_URI']); $data['q'] = $_REQUEST['q']; $data['searchOptions'] = CLUtil::getSearchOptions($_GET['type'], $_GET['q']); $data['meta'] = array ('h1' => 'Page Not Found', 'h2' => 'This craigslist ad may have been removed.'); $data['sections'] = CLUtil::getLabelForType (); asort ($data['sections']); $t = new Duckk_Template ('status/404.php', $data); $t->setWrapper ('chrome.php'); $t->render (); }
protected function getSearchOptions () { return CLUtil::getSearchOptions ($this->searchType, $_GET['q'], $this->getPage (), CLUtil::getUsedCities()); }