From fbf1603b5acf3684f003c8f75b9fb431abea397f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 21 Jul 2011 22:07:43 -0500 Subject: [PATCH] add comment about url::to_asset. --- system/url.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/url.php b/system/url.php index 76a615d3..0755ba56 100644 --- a/system/url.php +++ b/system/url.php @@ -19,6 +19,8 @@ public static function to($url = '', $https = false, $asset = false) $base = Config::get('application.url'); + // If the URL is being generated for a public asset such as an + // image, we do not want to include "index.php" in the path. if ( ! $asset) { $base .= '/'.Config::get('application.index');