add comment about url::to_asset.

This commit is contained in:
Taylor Otwell 2011-07-21 22:07:43 -05:00
parent e9a43326a7
commit fbf1603b5a
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ public static function to($url = '', $https = false, $asset = false)
$base = Config::get('application.url'); $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) if ( ! $asset)
{ {
$base .= '/'.Config::get('application.index'); $base .= '/'.Config::get('application.index');