public function show(){ // $testModel= new M('test'); $testModel= M('test'); $data=$testModel->get(); $testView= new V('test'); $testView->display($data); } 提示致命错误找不到testModel类,请问是怎么回事呢??
$testModel = M('test')不是实例化test模型,应该改为$testModel= new M('test');