+ -
当前位置:首页 → 问答吧 → 分组后,验证码无法显示

分组后,验证码无法显示

时间:2011-07-13

来源:互联网



如题,已排除BOM,GD库等因素,项目在分组后验证码无法正常显示:

<img class="code" id="verifyImg" src="/nccms/index.php/Admin/public/verify/" alt="点击刷新验证码">
如用单模块访问,则正常显示:
<img class="code" id="verifyImg" src="/nccms/admin.php/public/verify/" alt="点击刷新验证码">

部分代码:
//验证码
    public function verify()
    {
        $type = isset($_GET['type'])?$_GET['type']:'gif';
          import("ORG.Util.Image");
        Image::buildImageVerify(4,1,$type,48,20);
    }
求解!

作者: peterfei_1109   发布时间: 2011-07-13

可能路径有问题吧。。

作者: hbolive   发布时间: 2011-07-13