コード例 #1
0
ファイル: paginator.php プロジェクト: hpaul/Google-short
 /**
  * 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());
 }
コード例 #2
0
ファイル: url.php プロジェクト: hpaul/Google-short
 /**
  * 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);
 }