openlss/func-ui

UI helpers for OpenLSS interfaces

0.0.11 2013-04-07 02:54 UTC

This package is not auto-updated.

Last update: 2024-11-09 12:42:12 UTC


README

User Inteface (UI) helper functions for OpenLSS web frameworks

Usage

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

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

Reference

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

  • $msg The message to be displayed
  • $success TRUE = success, FALSE = error, NULL = notice
  • $delayed When TRUE alert is saved to a session to be displayed after a redirect

(void) redirect($url)

301 Redirect user to new URL WILL HALT OPERATION OF THE SCRIPT