/**
  * Given a has of key/value pairs, generates and redirects to a URL
  * for this application.  Takes the same parameters as
  * SilkResponse::create_url.
  *
  * @param array List of parameters used to create the url
  * @return void
  * @author Ted Kulp
  **/
 public static function redirect_to_action($params = array())
 {
     SilkResponse::redirect(SilkResponse::create_url($params));
 }
Beispiel #2
0
/**
 * Global wrapper for CmsResponse::redirect()
 *
 * @param $to The url to redirect to
 *
 * @return void
 * @author Ted Kulp
 **/
function redirect($to)
{
    SilkResponse::redirect($to);
}