There are several ways to access the request parameters within a controller:
direcly
class MyController extends \CController
{
...
public function actionMy()
{
...
$myVar = $_GET['my_param'];
...
}
...
}
over the request object
class MyController extends \CController
{
...
public function actionMy()
{
...
$myVar = $this->request->params('my_param');
...
}
...
}
(Why) Is the variant with the request object better?