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 is another controller view in yii?

1 Answers  


What are the directory structure of yii?

1 Answers  


How to get current url in yii?

1 Answers  


What are the application structure of yii 2.0 framework?

1 Answers  


What are the advantages of yii2?

1 Answers  


In yii, how to get ip address?

1 Answers  


What is the difference between render() and renderpartial() in yii ?

1 Answers  


How to use form validations in yii?

1 Answers  


Can you list some database related functions in yii?

1 Answers  


How to change the existing style of yii pagination?

1 Answers  


What about the naming convention in yii?

1 Answers  


How to enable the pretty url format in yii2?

1 Answers  


Categories