Пример функции getActionParam():
|
class EController extends CController |
|
{ |
|
public $meta_keywords = array(); |
|
public $meta_description = array(); |
|
public $breadcrumbs; |
|
|
|
/** |
|
* Gets a param |
|
* @param $name |
|
* @param null $defaultValue |
|
* @return mixed |
|
*/ |
|
public function getActionParam($name, $defaultValue = null) |
|
{ |
|
return Yii::app()->request->getParam($name, $defaultValue ); |
|
} |
...
}