Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get current controller id in yii ?



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

Post New Answer

More Yii PHP Framework Interview Questions

What are the advantages of yii2?

1 Answers  


What is the component, helper and why are they used, is there other way we can do same thing, what is better?

1 Answers  


How we can change the url for yii::app()->homeurl in yii2?

1 Answers  


How to use session in yii?

1 Answers  


How we can call layouts in controller file in yii?

1 Answers  


How we can set default controller in yii?

1 Answers  


What are the directory structure of yii 2.0 framework?

1 Answers  


How to include a javascript menu through a site?

1 Answers  


How do you proceed when you have to use yii for any application?

1 Answers  


What is gii? Why it is used?

1 Answers  


Why use yii 2.0 framework?

1 Answers  


What are the core components of yii2 framework?

1 Answers  


Categories