Controller\Webot::getSearchResults PHP 메소드

getSearchResults() 공개 메소드

public getSearchResults ( $f3 )
$f3
    public function getSearchResults($f3)
    {
        $this->response->data['SUBPART'] = 'webot_list.html';
        $page = \Pagination::findCurrentPage();
        $term = $f3->get('GET.term');
        $search_filter = array('zName LIKE ? zParam LIKE ? ', "%{$term}%", "%{$term}%");
        $records = $this->resource->paginate($page - 1, 10, $search_filter, array('order' => 'id desc'));
        $this->response->data['content'] = $records;
    }