/** * setRedirect shouldn't really be used for web services so give a warning and then call the parent. * @param string $url */ public function setRedirect($url) { I2CE::raiseError("You shouldn't call setRedirect on web services. Use setError instead to give an error message."); parent::setRedirect($url); }