function show() 一直說第三行錯誤
<?php
?class testController{
?? ? function show(){ //控制器的作用是調用模型 并調用視圖? 講模型產生的數據傳遞給視圖? 并讓相關視圖去顯示
?? ??? ?$testModel =new testModel();
?? ??? ?$data =$testModel->get();
?? ??? ?$testView=new testView();
?? ??? ?$testView->display($data);
?? ?? }
? }
?>
2015-04-30
testView 是不是沒有引入呢
2015-06-18
應該是你的show()沒有被調用