You do not have to import your module identification class. To do this, simply change the init function in the class of your module, extending the CWebModule, as shown below:
public function init()
{
$this->setImport(array(
'#moduleName#.models.*',
'#moduleName#.components.*',
));
}
Thus, all your module components (and models as well) will be imported, i.e. your module identification class.
: 2 UserIdentity.
, - include_path.
, CUserIdentity , . AdminUserIdentity. AdminUserIdentity ($ username, $password) UserIdentity ($ username, $password). .