/** * 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; }
/** * 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)); }