O
O
Oleg-Ukraine2017-07-31 14:41:00
Yii
Oleg-Ukraine, 2017-07-31 14:41:00

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

2 answer(s)
A
Andrey Tokmakov, 2017-07-31
@NPC

@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

These?

M
Maxim Timofeev, 2017-07-31
@webinar

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 through
Yii::getAlias('@papkaproekta')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question