Closed jpodpro closed 5 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?
No, it was not fixed. It is planned for Yii 2.1.
Closing since implementation is too different now.
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?