我这边按照上面的步骤还是找不到表,不管加不加数据库名,都会出现
数据库中无法找到 active record class "Merchant" 对应的 table "{{piao_userdb.merchant}}".
继承
<?php
class merchant extends MYActiveRecord
{
public function tableName()
{
return '{{piao_userdb.merchant}}';
}
public static function model($className=__CLASS__)
{
return parent::model($className);
}
}
控制器使用
$merchant=new merchant();
$list=$merchant->findAll();
var_dump($list);
报错
include(MYActiveRecord.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
}
墨色风雨