Commit d8683bcf authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #397 from maxzender/develop

Helper method for rendering views
parents ea820add 5eece1f3
...@@ -409,4 +409,16 @@ function with($object) ...@@ -409,4 +409,16 @@ function with($object)
function has_php($version) function has_php($version)
{ {
return version_compare(PHP_VERSION, $version) >= 0; 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();
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment