Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
How can we get all root directory path in yii2?
1.
How can we get all root directory path in yii2?
Answer»
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
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
__PHP_Incomplete_Class when do we get this? How to solve this problem?
How to expose private members when JSON encoding an object?
How can you access class members as array indexes?
How to pass out of scope variables to a callback function?
What are promises?
What are generators?
What is a resource? Which functions return/create resource?
Does PHP support event loop? If yes give some example.
What is OPcache?
How does the method overriding work with Traits?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies