+ -
当前位置:首页 → 问答吧 → thinkphp 访问不到类怎么回事?

thinkphp 访问不到类怎么回事?

时间:2011-03-31

来源:互联网

图片看不见呀。。

作者: luofei614   发布时间: 2011-03-31

<?php
echo 111;
// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action{
    public function index(){

        $this->display("login");
    }


就是这样,我怀疑是大小写的问题,但是也没有大小写呀

作者: xiaoyaochun8   发布时间: 2011-03-31

应该是有错误的, 你服务器可能没有显示错误, 关闭了错误信息。
你配置一下 php.ini  
display_errors 设置为On
error_reporting 设置为 E_ALL & ~E_NOTICE

作者: luofei614   发布时间: 2011-03-31




左边的ini,右边的tp

<?php
header('Content-Type: text/html; charset=utf-8');
error_reporting(E_ALL);
define('THINK_PATH', './ThinkPHP/');

;display_errors = "stderr"
;
; stdout (On) - Display errors to STDOUT
;
display_errors = On


图片上不去!只好写出代码了

作者: xiaoyaochun8   发布时间: 2011-03-31