Fatal error: Class 'testModel' not found
public function show(){ ? ? ? // $testModel= ?new M('test'); ? ? ? ?$testModel= ?M('test'); ? ? ? ?$data=$testModel->get(); ? ? ? ?$testView= new V('test'); ? ? ? ?$testView->display($data); ? ? } 提示致命錯(cuò)誤找不到testModel類,請問是怎么回事呢??
2017-02-05
$testModel = M('test')不是實(shí)例化test模型,應(yīng)該改為$testModel= ?new M('test');