$name = $this->getId(); // controller $name = $action->id; // action
$name = $action->id; // action
$name = Yii::app()->controller->id; // controller $name = $this->getAction()->getId(); // action
$name = $this->getAction()->getId(); // action
希望本文所述对大家基于yii框架的PHP程序设计有所帮助。