Пару дней назад я принялся за изучение Yii и походу возникает множество вопросов. Вот один из них:
в /protected/components/UserIdentify.php есть такой код:
Код: Выделить всё
if(!isset($users[$this->username]))
$this->errorCode=self::ERROR_USERNAME_INVALID;
elseif($users[$this->username]!==$this->password)
$this->errorCode=self::ERROR_PASSWORD_INVALID;
else
$this->errorCode=self::ERROR_NONE;
return !$this->errorCode;
Вопрос, конечно, относится скорее к языку, ежеле к фреймворку. Однако