【发布时间】:2011-10-09 10:20:41
【问题描述】:
下面是代码
class Home extends Public_Controller
{
/**
* Constructor method
*`enter code here`
* @author PyroCMS Dev Team
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
}
public function testimg(){
header("Content-type: image/png");
$image = imagecreatetruecolor(200, 200);
imagepng($image);
}
}
但是当我像(http://localhost/sitename/home/testimg)一样调用这个控制器时。 我收到以下错误
图片“http://localhost/sitename/home/testimg”无法显示,因为它包含错误。
请帮我解决这个问题,我是 pyrocms 的新手。
【问题讨论】:
标签: codeigniter pyrocms gd2