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

How to connect with database in yii?

1 Answers  


Who was the developer of the yii and when was it build?

1 Answers  


What are the prerequisites yii?

1 Answers  


Can you list some database related functions in yii?

1 Answers  


What are the system requirements to install yii2?

1 Answers  


What is the naming convention in yii framework? Explain

1 Answers  


What are the new features acquired in yii2?

1 Answers  


Explain directory structure of yii 2 framework?

1 Answers  


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

1 Answers  


How to customizing helper classes in yii framework?

1 Answers  


What is request life-cycle of yii 2.0 framework?

1 Answers  


How to use asset bundles in yii?

1 Answers  


Categories