i have tried to access current controller and action name using following code , it works for the controller but failing in case of action name (code location: protected/components/controller.php)
class Controller extends CController
{
public $layout='//layouts/column1';
public $menu=array();
public $breadcrumbs=array();
public function init()
{
echo Yii::app()->controller->id; // working fine
echo Yii::app()->controller->action->id; exit; // showing error ![enter image description here][1]
}
}