How to get request parameter ($_GET, $_POST)


I am new with Yii so sorry if my question is newbie. Is there any class/method to get request parameter from $_GET or $_POST array or should I get it directly via $_GET/$_POST? I have been using Symfony and Kohana and there were these methods (such as Input::instance()->get(‘x’). Is there something similar in Yii framework?


Yii::app()->request->getQuery($key, $defaultValue) and getPost() with the same parameters.

If you don’t need the $defaultValue functionality it’s also absolutely o.k. to access $_GET/$_POST/$_REQUEST directly.