Esempio n. 1
0
 public function execute($redirect = FALSE)
 {
     $xml = parent::execute();
     if ($redirect) {
         // Attempt to locate the redirect URL
         $redirect = $xml->getElementsByTagName('redirect-url');
         if ($redirect->length) {
             // Follow the redirect
             Request::instance()->redirect($redirect->item(0)->nodeValue);
         }
     }
     return $xml;
 }