diff --git a/audit/AuditModule.php b/audit/AuditModule.php index d6b912c..00e4013 100644 --- a/audit/AuditModule.php +++ b/audit/AuditModule.php @@ -82,6 +82,11 @@ class AuditModule extends CWebModule */ public $userViewUrl; + /** + * @var array|string The home url, eg "/admin". + */ + public $homeUrl; + /** * @var string The path to YiiStrap. * Only required if you do not want YiiStrap in your app config, for example, if you are running YiiBooster. @@ -145,6 +150,10 @@ public function init() if (empty($this->modelMap[$method][$name])) $this->modelMap[$method][$name] = $options; + // set homeUrl + if ($this->homeUrl) + Yii::app()->homeUrl = $this->homeUrl; + // init yiiStrap $this->initYiiStrap(); }