openlss/func-ui

OpenLSS接口的UI辅助工具

0.0.11 2013-04-07 02:54 UTC

This package is not auto-updated.

Last update: 2024-09-14 12:03:46 UTC


README

OpenLSS Web框架的用户界面(UI)辅助函数

用法

//save an alert to be displayed
alert('The process failed',false);

//redirect user to new page
redirect('http://google.com');

参考

(bool) alert($msg,$success=true,$delayed=false)

  • $msg 要显示的消息
  • $success TRUE = 成功, FALSE = 错误, NULL = 提示
  • $delayed 当为TRUE时,alert将被保存到会话中,在重定向后显示

(void) redirect($url)

301 重定向用户到新URL 将终止脚本的运行