Added a helper method to render a given view
Signed-off-by: Max Zender <maxzender@gmail.com>
This commit is contained in:
parent
18f91414bb
commit
5eece1f33f
|
@ -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();
|
||||||
}
|
}
|
Loading…
Reference in New Issue