Commit 5eece1f3 authored by Max Zender's avatar Max Zender

Added a helper method to render a given view

Signed-off-by: 's avatarMax Zender <maxzender@gmail.com>
parent 18f91414
......@@ -410,3 +410,15 @@ 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();
}
\ 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