# Sử dụng components list có ô search đơn giản
public function executeListSearch(dmWebRequest $request)
{
$query = $this->getListQuery();
$keyword = $request->getParameter('keyword', '');
$this->enteredKeyword = $keyword;
if ($keyword) {
$keyword = addcslashes($keyword, "%_");
$query = $query->andWhere("question LIKE ?", '%' . $keyword . '%');
}
$this->myQuestionPager = $this->getPager($query);
$this->myQuestionPager->setOption('url_params', array('keyword' => $keyword));
$this->myQuestionPager->setOption('ajax', true);
}
Title:
Diem CMF - List component with search box
Description:
# Sử dụng components list có ô search đơn giản public function executeListSearch(dmWebRequest $request) { $query = $this->getListQue...
...
Rating:
4