There was an error while loading. Please reload this page.
1 parent fed21db commit 0ef139bCopy full SHA for 0ef139b
services/Url.php
@@ -314,12 +314,22 @@ public function getCurrentBaseUrl()
314
315
return $this->_currentBaseUrl;
316
}
317
-
+
318
+ protected $_homeUrl;
319
+ public function setHomeUrl($homeUrl)
320
+ {
321
322
+ $this->_homeUrl = $homeUrl;
323
+ }
324
/**
325
* get current home url , is was generate by 'http://'.store_code.
326
*/
327
public function homeUrl()
328
{
329
+ if ($this->_homeUrl) {
330
331
+ return $this->_homeUrl;
332
333
return Yii::$app->getHomeUrl();
334
335
0 commit comments