class IndexAction extends Action {
function index() {
}
public function regaaa(){
echo 'aaaa';
}
}
?>
这是IndexAction.class.php的代码,但我用浏览器执行http://localhost/site1/index.php/Index/regaaa总提示
无法加载模块:Regaaa
错误位置
FILE: C:\wamp\www\site1\ThinkPHP\Common\functions.php LINE: 112
但将 regaaa()方法放到其他类文件中则可以正常执行,请问哪里不对吗??
最佳答案