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 we can get current controller & action name in yii?



How we can get current controller & action name in yii?..

Answer / 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

More Yii PHP Framework Interview Questions

What is the naming convention in yii framework? Explain

1 Answers  


What is the first file that gets loaded when you run a application using yii?

1 Answers  


List some database related functions in yii 2 framework?

1 Answers  


Why yii framework is faster?

1 Answers  


What is active record (ar) in yii framework?

1 Answers  


How we can remove index.php from url in yii?

1 Answers  


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

1 Answers  


What is yii 2? Please explain?

1 Answers  


What's new in yii release 2.0?

1 Answers  


How to use form validations in yii?

1 Answers  


Why yii is so fast?

1 Answers  


What are the new features acquired in yii2?

1 Answers  


Categories