simplified Yii::import().

This commit is contained in:
Qiang Xue
2013-04-11 17:40:23 -04:00
parent 6ae715ff8a
commit bcc833200a
3 changed files with 24 additions and 74 deletions

View File

@@ -285,19 +285,6 @@ abstract class Module extends Component
$this->_layoutPath = FileHelper::ensureDirectory($path);
}
/**
* Imports the specified path aliases.
* This method is provided so that you can import a set of path aliases when configuring a module.
* The path aliases will be imported by calling [[Yii::import()]].
* @param array $aliases list of path aliases to be imported
*/
public function setImport($aliases)
{
foreach ($aliases as $alias) {
Yii::import($alias);
}
}
/**
* Defines path aliases.
* This method calls [[Yii::setAlias()]] to register the path aliases.