數據庫已經建好并改好main.php中的參數,但是使用gii Model Generator時會出現table does not exist。
1 回答

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