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 url in yii?



How to get current url in yii?..

Answer / Gulshan Arya

To get the current URL in Yii2, you can use the `yiihelpersUrl::current()` function or the `url` property of the current view instance, such as: `echo Yii::$app->urlManager->baseUrl;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Yii PHP Framework Interview Questions

Why gii is used in yii 2.0?

1 Answers  


Why yii is so fast?

1 Answers  


What are the application structure of yii 2.0 framework?

1 Answers  


What is components in yii? Explain

1 Answers  


Which orm does yii2 supports?

1 Answers  


Why yii framework is faster?

1 Answers  


What is widgets in yii? How we can use it?

1 Answers  


How to use module components and aliases?

1 Answers  


What are the server requirements to install yii 2.0 framework?

1 Answers  


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

1 Answers  


How to configure yii application with database?

1 Answers  


How to get current action & controller name in yii2?

1 Answers  


Categories