Difference between #2 and #3 of
Yii v2 snippet guide II

Revision #3 has been created by rackycz on Aug 26, 2020, 10:55:19 PM with the memo:

mssql
« previous (#2) next (#4) »

Changes

Title unchanged

Yii v2 snippet guide II

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2,snippets

Content changed

[...]
use yii\helpers\ArrayHelper;
class MyMsModel extends \yii\db\ActiveRecord
{
public static function getDb()
{
return \Yii::$app->db2;
 // or Yii::$app->get('db2'); } public static function tableName() { return 'CATEGORY.SCHEMA.TBL_NAME'; // or SCHEMA.TBL_NAME
}
}
```

Usage:
[...]
4 0
3 followers
Viewed: 75 383 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Aug 26, 2020
Last updated: 3 years ago
Update Article

Revisions

View all history