<?php
class ProductController extends Yaf_Controller_Abstract
{
public function viewAction()
{
// Assuming the request is /product/view/id/17/sort/price
var_dump($this->getRequest()->getParams());
}
}
?>
The above example will output
something similar to:
array(2) {
["id"]=>
string(2) "17"
["sort"]=>
string(5) "price"
}