Есть код и по идее должна выходить страница результатов поиска но выходит из вот этого кода который есть ниже
elseif(!$this->PAGE->getRenderedPage()) {
$this->PAGE->error = 'Такой страницы нет!';
}
вот эта строка на странице Такой страницы нет!
elseif($this->uri == 'user/') {
require_once ('user.php');
}
elseif($this->uri == 'logon/') {
$this->PAGE->content = $user;
}elseif($this->CONFIG->query[0]=="search" and isset($this->CONFIG->query[1]) && !empty($this->CONFIG->query[1])) {
require_once '/classes/class.Search.php';
$this->objSrch = new Search(iconv("utf-8","windows-1251",(urldecode($this->CONFIG->query[1]))));
$this->objSrch->drawThis();
$this->PAGE->title = $this->objSrch->printArray['page_title'];
$this->PAGE->content = $this->objSrch->printArray['page_content'];
$highlight = $this->objSrch->printArray['highlight'];
}
elseif(!$this->PAGE->getRenderedPage()) {
$this->PAGE->error = 'Такой страницы нет!';
}
else {
$this->path = $this->PAGE->full_path;
$this->PAGE->render();
$this->tpl = $this->PAGE->tpl;
}
что это может быть?
|