public function searchAdvanced()
    {
        if (!$this->nextPage) {
            Yii::$app->session->set('forum-search', [
                'query' => $this->query,
                'match' => $this->match,
                'author' => $this->author,
                'dateFrom' => $this->dateFrom,
                'dateFromStamp' => $this->dateFromStamp,
                'dateTo' => $this->dateTo,
                'dateToStamp' => $this->dateToStamp,
                'forums' => $this->forums,
                'type' => $this->type,
                'display' => $this->display
            ]);
        }
        if ($this->type == 'topics') {
            return $this->searchTopics();
        }
        return $this->searchPosts();
    }
public function searchAdvanced()
    {
        if (!$this->nextPage) {
            Yii::$app->session->set('forum-search', [
                'query' => $this->query,
                'match' => $this->match,
                'author' => $this->author,
                'dateFrom' => $this->dateFrom,
                'dateFromStamp' => $this->dateFromStamp,
                'dateTo' => $this->dateTo,
                'dateToStamp' => $this->dateToStamp,
                'forums' => $this->forums,
                'type' => $this->type,
                'display' => $this->display
            ]);
        }
        if ($this->type == 'topics') {
            return $this->searchTopics();
        }
        return $this->searchPosts();
    }
public function searchAdvanced ( ) { if ( ! $ this -> nextPage ) { Yii :: $ app -> session -> set ( 'forum-search' , [ 'query' => $ this -> query , 'match' => $ this -> match , 'author' => $ this -> author , 'dateFrom' => $ this -> dateFrom , 'dateFromStamp' => $ this -> dateFromStamp , 'dateTo' => $ this -> dateTo , 'dateToStamp' => $ this -> dateToStamp , 'forums' => $ this -> forums , 'type' => $ this -> type , 'display' => $ this -> display ] ) ; } if ( $ this -> type == 'topics' ) { return $ this -> searchTopics ( ) ; } return $ this -> searchPosts ( ) ; }
Advanced search.
@return ActiveDataProvider
Advanced search .