/** * Create a HTML page link. * * @param int $page * @param string $text * @param string $attributes * @return string */ private function link($page, $text, $class) { $append = ''; foreach ($this->append as $key => $value) { $append .= '&' . $key . '=' . $value; } return HTML::link(Request::uri() . '?page=' . $page . $append, $text, compact('class'), Request::is_secure()); }
/** * Generate an application URL to an asset. The index file * will not be added to the URL. * * @param string $url * @return string */ public static function to_asset($url) { return static::to($url, Request::is_secure(), true); }