How can we get all root directory path in yii2?
Yii2 Basic App
- @app: It uses to get the application root directory
- @vendor: It uses to get vendor directory on your root app install directory
- @runtime: It uses to get application files runtime storage folder
- @web: It uses to get application base URL path
- @webroot: It uses to get application web root
- @tests: It uses to get console tests directory
Yii2 Advanced App
- @app: It uses to get application root directory frontend or backend
- @vendor: It uses to get vendor directory on root app install directory
- @runtime: It uses to get application files runtime storage folder
- @web: It uses to get application base URL
- @webroot: It uses to get application web root path
- @tests: It uses to get console tests directory
- @common: It uses to get Alias of common root folder on root app install directory
- @frontend: It uses to get Alias of frontend root folder on root app install directory
- @backend: It uses to get Alias of backend root folder on root app install directory
- @console: It uses to get Alias of console root folder on root app install directory
BY Best Interview Question ON 02 Feb 2019