Hi,
i have a link;
index/tags&tags=flowers
And i want to
SELECT * FROM index WHERE tags LIKE %flowers%
This is my function in IndexController:
public function tagsAction(){
$currentPage = (int) $_GET["page"];
$tagsVar = $_GET["tags"];
$findTags = Index::find(
array(
'tags IN (?0)',
'bind' => array(
$tagsVar
)
)
);
$paginator = new Paginator(array(
"data" => $findTags,
"limit" => 96,
"page" => $currentPage
));
$this->view->setVar('page', $paginator->getPaginate());
}
The result should be the parameter for the paginator.
Thx
Rgds
Stefan