How to get current action id in yii ?
Answer / Shweta Jain
In Yii, you can get the current action ID using the $this->context->action->id property. This property returns the ID of the currently executed action.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the steps to install yii 2.0 framework?
How to use module components and aliases?
What is cformmodel in yii framework ?
How to access module component?
What are the application structure of yii 2.0 framework?
What are the new features acquired in yii2?
How to configure yii application with database?
What is gii in yii 2 and for what it is used?
How to use asset bundles in yii?
What is cmodel class in yii2?
What's new in yii release 2.0?
How we can call layouts in controller file in yii?