|
* 验证码
*/
function captcha()
{
$this->load->library('CaptchaImage');
ob_start();
$this->session->set_flashdata('captcha', $this->captchaimage->getString());
$this->captchaimage->setFont('./system/fonts/type-ra.ttf',16);
$this->captchaimage->draw();
ob_flush();
}
----------------------------------
<td><img src="<?php echo site_url('admin/captcha') ?>" border="0"></td>
就是显示不了 怎么了呢?
我看图片的地址也是对的 |
|