I’ve been reading the source code of Yii recently. In the configuration array, we can set ‘import’ => array( … ). But I couldn’t find any code for importing those paths in that array, i.e., I couldn’t find any code refers to Yii::app()->import. I tried to trace it with a debugger but didn’t get good luck. Where is it?
/**
* Sets the aliases that are used in the module.
* @param array $aliases list of aliases to be imported
*/
public function setImport($aliases)
{
foreach($aliases as $alias)
Yii::import($alias);
}