用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1869|回复: 1
收起左侧

求助关于自己写的验证码用法

[复制链接]
发表于 2012-7-16 10:34:54 | 显示全部楼层 |阅读模式
本帖最后由 chaos 于 2012-7-16 10:39 编辑

自己写了个验证码类,放在libraries下,在controller中用时
首先$this->load->library('yzm');
然后要$img =  new yzm;  $img->outimg();才能显示验证码
而用$this->yzm->outimg();的话却会报错Undefined property xxxxxx问题
为什么?
发表于 2012-7-16 15:02:36 | 显示全部楼层
把你写的验证码类代码贴出来 不然谁知道什么问题

本版积分规则