L
L
LittleFatNinja2015-12-05 23:09:36
Yii
LittleFatNinja, 2015-12-05 23:09:36

Where to store constants in yii2?

Where to store such constants as a path as to some directory?
you can just list it in web/index.php, is this normal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mylistryx, 2015-12-05
@Mylistryx

Yii2 has aliases, www.yiiframework.com/doc-2.0/guide-concept-aliases.html read the documentation before writing bikes!
And yes, the design of the question implies a positive answer to the question "I searched, but did not find ...", man, you were not just looking badly, you did not even try to search!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question