Revision #2 has been created by Wade Shuler on Apr 16, 2017, 5:41:20 PM with the memo:
fix title
« previous (#1) next (#3) »
Changes
Title
changed
Yii2 - How to make UrlManager createAbsoluteUrl work with sub-domains
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
yii2, url manager, urlmanager, URL, subdomain, sub-domains, domain
Content
unchanged
[...]
Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/login'])
~~~
In my app, it generates a link for my mainsite to the users app: `http://users.yii2-members-system.dev/site/login`. This was so on my mainsite I can link to the user's subdomain for them to login.
I hope this helps someone, and I hope Yii actually adopts a solution for this sort of linking and handling sub-domains.