thinkphp,ThinkPHP-类库参考-Action类
- getActionName() 获取当前Action的名称
- display(templateFile=,charset=,contentType='text/html') 输出模板
- fetch(templateFile=,charset=,contentType='text/html') 获取模板输出内容
- buildHtml(htmlfile=,templateFile=,charset=,contentType='text/html') 生成静态页面
- assign(name,value=) 模板变量赋值
- __set(name,value) 模板变量赋值,魔术方法
- trace(name,value=) Trace变量赋值
- error(message,ajax=false) 错误跳转
- success(message,ajax=false) 成功跳转
- ajaxReturn(data,info=,status=1,type=) AJAX返回数据到客户端
- redirect(url,params=array(),delay=0,msg=) Action重定向
延伸阅读
最新评论