Browse Source

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
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
f6ba1f0082
  1. 1
      extensions/debug/Module.php
  2. 1
      extensions/gii/Module.php

1
extensions/debug/Module.php

@ -53,6 +53,7 @@ class Module extends \yii\base\Module
public function init() public function init()
{ {
Yii::setAlias('@yii/debug', __DIR__);
parent::init(); parent::init();
$this->dataPath = Yii::getAlias($this->dataPath); $this->dataPath = Yii::getAlias($this->dataPath);
$this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this); $this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this);

1
extensions/gii/Module.php

@ -96,6 +96,7 @@ class Module extends \yii\base\Module
*/ */
public function init() public function init()
{ {
Yii::setAlias('@yii/gii', __DIR__);
parent::init(); parent::init();
foreach (array_merge($this->coreGenerators(), $this->generators) as $id => $config) { foreach (array_merge($this->coreGenerators(), $this->generators) as $id => $config) {
$this->generators[$id] = Yii::createObject($config); $this->generators[$id] = Yii::createObject($config);

Loading…
Cancel
Save