<?php
class SearchController extends Yaf_Controller_Abstract
{
public function indexAction()
{
// Assuming the request is /search?keyword=yaf&page=2
$keyword = $this->getRequest()->getQuery("keyword");
$page = (int) $this->getRequest()->getQuery("page", 1);
var_dump($keyword, $page);
}
}
?>
The above example will output
something similar to: