yii1 get action name in controller code example Example: get action name in yii2 echo $this->action->id;