Initial commit,修正
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
#
|
||||
# @Author: fm453
|
||||
# @Date: 2024/7/16
|
||||
# @updated: 下午4:50
|
||||
# @Email: 1280880631@qq.com
|
||||
|
||||
namespace addons\models;
|
||||
|
||||
use Yii;
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
class AcNewsCat extends ActiveRecord
|
||||
{
|
||||
//指定数据库
|
||||
public static function getDb()
|
||||
{
|
||||
return Yii::$app->get('ac');
|
||||
}
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return '{{%ac_news_cat}}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user