Helix Installation   Getting Started   Reference Documentation   Global Functions   Quick Start
ModulesClassesFunctions
 

Function Reference

redirect ( url , params )

Description
No description.
 
Parameters
requiredurl
optionalparams
 
Code
535  function redirect($url, $params=null)
536  {
537      global $sess;
538 
539      $location = preg_match('/^http(s)?:\/\//i',$url) ? $url : CURRENT_URL . $url;
540      unset($_REQUEST["p"]);
541      unset($_REQUEST["f"]);
542      $qs = is_null($params) ? null : "?$params";
543      if (is_object($sess))
544      {
545          $sess->register("request",$_REQUEST);
546          $sess->commit();
547      }
548      debug("REDIRECTING TO " . $location . $qs,__FILE__,__LINE__);
549      header("Location: " . $location . $qs);
550      exit;
551  }
Get Helix PHP Framework at SourceForge.net. Fast, secure and Free Open Source software downloads