authentication - Yii2 Login from DB (Setting unknown property: app\models\User::password_hash) -
i want user authentication in yii based on user table in database. user model: <?php namespace app\models; use yii; use yii\base\notsupportedexception; use yii\db\activerecord; use yii\helpers\security; use yii\web\identityinterface; /** * model class table "user". * * @property integer $id * @property string $username * @property string $password * @property string $title */ class user extends \yii\db\activerecord implements identityinterface { public static function tablename() { return 'user'; } /** * @inheritdoc */ public function rules() { return [ [['username', 'password'], 'required'], [['username', 'password'], 'string', 'max' => 100] ]; } /** * @inheritdoc */ public function attributelabels() { return [ 'id' => 'userid...