mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正M方法
This commit is contained in:
2
base.php
2
base.php
@@ -80,7 +80,7 @@ function G($label) {
|
|||||||
* @return Model
|
* @return Model
|
||||||
*/
|
*/
|
||||||
function M($name='', $tablePrefix='',$connection='') {
|
function M($name='', $tablePrefix='',$connection='') {
|
||||||
return Think\Loader::table($name,$tablePrefix,$connection);
|
return Think\Loader::table($name,['table_prefix'=>$tablePrefix,'connection'=>$connection]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user