Commit f6ba1f00 by Carsten Brandt

fixed asset path problem in gii and debug module

set alias to the correct path as they are not part of the yii framework directory anymore
parent c0506b8c
......@@ -53,6 +53,7 @@ class Module extends \yii\base\Module
public function init()
{
Yii::setAlias('@yii/debug', __DIR__);
parent::init();
$this->dataPath = Yii::getAlias($this->dataPath);
$this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this);
......
......@@ -96,6 +96,7 @@ class Module extends \yii\base\Module
*/
public function init()
{
Yii::setAlias('@yii/gii', __DIR__);
parent::init();
foreach (array_merge($this->coreGenerators(), $this->generators) as $id => $config) {
$this->generators[$id] = Yii::createObject($config);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment