标签:io art ar cti app php ui on
在控制器中定义一个控制器,一定要开启 session
class PublicAction extends Action {
public function verify()
{
session(‘[start]‘);
import(‘ORG.Util.Image‘);
Image::buildImageVerify(4,5);
}
}
在调用面面中可用
<img src="__APP__/Public/verify/" id="verify" onclick="changeVerify()" />
刷新时用:
<script>
function changeVerify()
{
var imgVerify = document.getElementById(‘verify‘);
imgVerify.src="__APP__/Public/verify/?id="+Math.random();
}
</script>
更详细看手册
标签:io art ar cti app php ui on
原文地址:http://www.cnblogs.com/lin3615/p/3902675.html