April 3, 2011Categories YiiGet current Controller & action in Yii In view file $this->uniqueid (controller name) $this->action->Id (action name) ($this is CController instance) In other files Yii::app()->controller->id Yii::app()->controller->action->id