How to get current controller & action

Is their a way to get the name of the current controller and action that the app is executing? I was wondering if Yii:app stores this or not, but I can’t find any reference to it. I need this information to use in the main layout view for a widget. Thanks!

In view file - $this->uniqueid - controller name, $this->action->Id - action name. ($this is CController instance)

Yes, thanks. That’s exactly what I was looking for. :D

Or Yii::app()->controller->id and Yii::app()->controller->action->id, respectively.