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 can we get all root directory path in yii2?



How can we get all root directory path in yii2?..

Answer / Mayank Pushkar

In Yii2, you can get the root directory path using Yii::getAlias('@app'). Here's an example:

```php
echo Yii::getAlias('@app');
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Yii PHP Framework Interview Questions

How to set default controller on yii project ?

1 Answers  


Provide steps to install yii 2 framework?

1 Answers  


What are the server requirements to install yii2?

1 Answers  


How can we set a flash message in yii2?

1 Answers  


What are formatter in yii2?

1 Answers  


What are the new features acquired in yii2?

1 Answers  


How to get current action id in yii ?

1 Answers  


What is gii?

1 Answers  


Explain request life cycle in yii2 framework.

1 Answers  


List some database related query functions in yii?

1 Answers  


What is difference between “render” and “renderpartial” in yii?

1 Answers  


Benifits of yii over other frameworks?

1 Answers  


Categories