+ -
当前位置:首页 → 问答吧 → Image.class.php 问题

Image.class.php 问题

时间:2011-08-02

来源:互联网



在这个类里加了一个方法类似 thumbstatic function genertpic($image, $thumbname, $type='', $range, $interlace=true){.........}
在外部调用时:
import("ORG.Util.Image"); //导入图片类
$images= Image::genertpic($image, $fname, $type='', $i, $interlace=true)

提示错误
Fatal error: Call to undefined method Image::genertpic() in。。。。


但是调用thumb 测试时就可以,难道自己加的方法还要在其它某处声明一下么?


求解。。

作者: jsf   发布时间: 2011-08-02

我K,一个也没明白人。。
还是自己搞明白了,,两个同样的类,先调用模块下边的一个。

作者: jsf   发布时间: 2011-08-05