错误信息:[2048] Declaration of IndexAction::show() should be compatible with that of
Action::show() I:\PHPnow\htdocs\ThinkPHP\Home\Lib\Action\IndexAction.class.php 第
10 行.
代码段:
<?php
class IndexAction extends Action {
public function show(){
$m=M('User');//实例化 new model()
$arr=$m->select();
$this->assign("data",$arr);
$this->display();
}
}