Answer the question
In order to leave comments, you need to log in
How to get the path to the project folder?
how to get the path to the project? Not to the frontend or back folder or... but to the project folder?
Answer the question
In order to leave comments, you need to log in
@app: Application root directory
@vendor: Vendor folder, under @app
@runtime: Path to application temporary files runtime/cache
@web: Application base URL
@webroot: Application webroot
@tests: Application tests directory
Set any alias in the config. For example, in \common\config\bootstrap.php
The main ones are set there, add your own, for example
And get with throughYii::getAlias('@papkaproekta')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question