added simpler and easier environment handling.

This commit is contained in:
Taylor Otwell
2012-04-12 23:35:41 -05:00
parent 34cb9a00f4
commit ab6e364546
4 changed files with 123 additions and 61 deletions

View File

@@ -70,9 +70,7 @@ class URL {
}
else
{
$f = Request::foundation();
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBasePath();
$base = Request::foundation()->getRootUrl();
}
return static::$base = $base;