yii框架使用model出現 table does not exist的解決辦法
1 回答

慕斯709654
TA貢獻1840條經驗 獲得超5個贊
在相應的model中添加該方法:
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%table_name}}';
}
- 1 回答
- 0 關注
- 865 瀏覽
添加回答
舉報
0/150
提交
取消