Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/cornernote/yii-audit-module
Browse files Browse the repository at this point in the history
  • Loading branch information
cornernote committed Feb 24, 2015
2 parents 8d36218 + df17b7f commit 0c23e25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions audit/AuditModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 0c23e25

Please sign in to comment.