How we can get current controller & action name in yii?
Answer Posted / Sandeep Gautam
To get the current controller and action name in Yii, you can use $this->controller->id and $this->action->id respectively. For example:nn```phpnecho $this->controller->id . ' - ' . $this->action->id;```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers