<?php namespace app\models; use Yii; class User extends \yii\db\ActiveRecord implements \yii\web\IdentityInterface { public $auth_key='sun'; public $access_token='sun'; /** * @inheritdoc */ public static function tableName() { return '{{%user}}'; } /