Ejemplo n.º 1
0
Archivo: Basic.php Proyecto: atk4/atk4
 /**
  * Return originalally requested URL.
  *
  * @return string
  */
 public function getURL()
 {
     $p = $this->recall('page');
     // If there is a login page, no need to return to it
     if ($p == 'login') {
         return $this->app->url('/');
     }
     $url = $this->app->url($p, $this->recall('args', null));
     $this->forget('page');
     $this->forget('args');
     return $url;
 }
Ejemplo n.º 2
0
 /**
  * Return the URL which would trigger execution of the associated
  * code within a separate page.
  *
  * @param string $arg Argument to pass to the page
  *
  * @return URL
  */
 public function getURL($arg = 'true')
 {
     return $this->app->url(null, array($this->name => $arg));
 }