Ejemplo n.º 1
0
 /**
  * Redirect to a specified module action.
  * This method is usable both for admin and frontend requests.
  *
  * @param string $id the module action id.  For admin requests this is usually 'm1_'
  * @param string $action The designated module action.  If none is specified 'defaultadmin' is assumed.
  * @param int $returnid The destination page.  empty for admin requests.
  * @param array $params Extra parameters for the URL
  * @param bool $inline Wether the output should be an inline URL or not ??
  */
 function Redirect($id, $action, $returnid = '', $params = array(), $inline = false)
 {
     $parms = array();
     if (is_array($params)) {
         $parms = $params;
     }
     if (is_array($this->_errormsg) && count($this->_errormsg)) {
         $parms['cg_error'] = implode(':err:', $this->_errormsg);
     }
     if (is_array($this->_messages) && count($this->_messages)) {
         $parms['cg_message'] = implode(':msg:', $this->_messages);
     }
     parent::Redirect($id, $action, $returnid, $parms, $inline);
 }