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