Skip to content

Commit a843738

Browse files
author
Tortue Torche
committed
Tidying up the 'render_view()' helper.
1 parent a77ea28 commit a843738

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Efficiently/JqueryLaravel/helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,14 @@ class_exists('Button') &&
282282
* {!! render_view('view.name') !!}
283283
* {!! render_view('view.name', ['some'=>'data']) !!}
284284
*
285-
* @param string $route Route name
285+
* @param string $view View name
286286
* @param array $parameters Optional array of data to the rendered view
287287
* @param string $section Section name to yield
288288
* @return string
289289
*/
290-
function render_view($route, $parameters = [], $section = null)
290+
function render_view($view, $parameters = [], $section = null)
291291
{
292-
$view = view($route, $parameters, array_except(get_defined_vars(), ['__data', '__path']))->render();
292+
$view = view($view, $parameters, array_except(get_defined_vars(), ['__data', '__path']))->render();
293293
if ($section) {
294294
$view = $view.View::yieldContent($section);
295295
}

0 commit comments

Comments
 (0)