yiisoft / yii-core

Yii Framework 3.0 core
https://www.yiiframework.com/
432 stars 75 forks source link

cannot use @web or @webroot in config. #186

Closed jpodpro closed 5 years ago

jpodpro commented 8 years ago

i want to setup some aliases in the app config such as an uploads directory: 'aliases' => [ '@uploadsurl' => '@web/uploads' ],

however this fails because @web is unavailable in the config stage which sucks. @web and @webroot shouldn't need to wait until Request to be defined. are they not extremely independent values?

jeffwalsh commented 7 years ago

My app doesn't know its own baseURL? This led to a lot of frustration, wondering if maybe I overwrote the @web alias or what, until... it's empty. A year after this issue was raised.

Maybe this has this been fixed, and I need to update it somewhere?

samdark commented 7 years ago

No, it was not fixed. It is planned for Yii 2.1.

samdark commented 5 years ago

Closing since implementation is too different now.