CWebApplication::getUrlParam() ? or similiar ?

Yii handles both query string variables and params nicely by putting them into $_GET. But it's sort of a pain to have to work with $_GET array.  It would be helpful to have;


// class CWebApplication

public function getUrlParam($name, $default = null)


    return (isset($_GET)? $_GET: $default);



So you can do


$search = Yii::app()->getUrlParam('search', 'all');

// otherwise you are forced to ugly it up :)

$search = (isset($_GET['search'])? $_GET['search']: 'all');


Could you please create a ticket for this? Thanks.

Perhaps getPostParam() would be nice too

Shouldn't this be a part of the CHttpRequest class?