Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systems:yii2:modules [2018/04/17 15:34]
smayr [Using Custom Database]
systems:yii2:modules [2018/04/18 09:56] (current)
smayr [Using Custom Database]
Line 263: Line 263:
     {     {
         return "{{%item_product}}";  // formatted to allow table prefix (where % goes)         return "{{%item_product}}";  // formatted to allow table prefix (where % goes)
-        // NOTE: Query the raw table name with+         
-        // $tblUser = Yii::$app->db->schema->getRawTableName(app\models\User::tableName());+        // NOTE: To query the raw table name, use the following
 +        //   echo Yii::$app->db->schema->getRawTableName(app\models\ItemProduct::tableName()); 
 +        // Displays as follows (assuming 'mod_' table prefix): 
 +        //   mod_item_product
     }     }