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
...@@ -410,3 +410,15 @@ function has_php($version) ...@@ -410,3 +410,15 @@ 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