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 are formatter in yii2?

1 Answers  


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

1 Answers  


What is required properties in yii application? Why?

1 Answers  


What is the component, uses, how can we do and what is the better way?

1 Answers  


Explain the difference between homeurl and baseurl in yii2?

1 Answers  


Benifits of yii over other frameworks?

1 Answers  


Can you list some database related functions in yii?

1 Answers  


What are the naming convention in yii 2.0 framework?

1 Answers  


What are the requirements of the yii?

1 Answers  


What are yii helpers?

1 Answers  


Explain naming convention in yii 2 framework?

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  


Categories