deerawan / yii2-advanced-api

Yii2 advanced template with RESTful API setup
Other
194 stars 157 forks source link

what is purpose of aliases.php? #11

Open shahzadthathal opened 8 years ago

shahzadthathal commented 8 years ago

Hi,

Nice work, I really appreciate your effort! I have a question! Why you use aliases.php for paths? why you not used bootstrap.php? pls explain your logic?

Thank you

deerawan commented 8 years ago

Hi @shahzadthathal

Thank you 😄

I use aliases.php because this is how Yii2 define alias for folders e.g. backend, frontend, etc.

Does it answer your question?

deerawan commented 8 years ago

I think this PR is related to your question @shahzadthathal

https://github.com/deerawan/yii2-advanced-api/pull/8

seems like Yii2 has changed aliases into bootstrap. I have not updated this repo with the latest Yii2.