Confused Of Components, Extensions, Import, Aliases

At the moment I try to implement the HybridAuthIdentity extension.

Directories:

/components/HybridAuthIdentity.php which extends the CUserIdentity

/extensions/… Here is version 2.1.2 of HybridAuthIdentity

In my controller I use:


Yii::import('ext.components.HybridAuthIdentity');

And I get this error:

include(D:\XXXXXX\web\frontend\extensions\components\HybridAuthIdentity.php): failed to open stream: No such file or directory

And I added this to component array in main.php:


'HybridAuthIdentity' => array(

			'class' => 'HybridAuthIdentity',

		),

Do I need to preload the component?

Why the autoloader searchs in extensions\components?

You used the ext alias as prefix in import alias:




Yii::import('ext.components.HybridAuthIdentity');



You should change it to application.