Merge branch 'develop' of github.com:laravel/laravel into develop

This commit is contained in:
Taylor Otwell 2012-03-12 10:50:22 -05:00
commit c514ca1e34
1 changed files with 12 additions and 0 deletions

View File

@ -409,4 +409,16 @@ function with($object)
function has_php($version)
{
return version_compare(PHP_VERSION, $version) >= 0;
}
/**
* Render the given view.
*
* @param string $view
* @param array $data
* @return string
*/
function render($view, $data = array())
{
return Laravel\View::make($view, $data)->render();
}