How to get current controller id in yii ?
Answer / Arun Prakash Krishna Vimal
Use the `getControllerId()` function from the Yii Active Controller class (e.g., `yiibaseController`) to get the ID of the current controller.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the advantages of yii2?
What is the component, helper and why are they used, is there other way we can do same thing, what is better?
How we can change the url for yii::app()->homeurl in yii2?
How to use session in yii?
How we can call layouts in controller file in yii?
How we can set default controller in yii?
What are the directory structure of yii 2.0 framework?
How to include a javascript menu through a site?
How do you proceed when you have to use yii for any application?
What is gii? Why it is used?
Why use yii 2.0 framework?
What are the core components of yii2 framework?