Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
9dbbc584
Commit
9dbbc584
authored
Mar 24, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix blade @includes.
parent
33cc89a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
laravel/blade.php
+1
-1
laravel/helpers.php
+14
-0
No files found.
laravel/blade.php
View file @
9dbbc584
...
@@ -256,7 +256,7 @@ class Blade {
...
@@ -256,7 +256,7 @@ class Blade {
{
{
$pattern
=
static
::
matcher
(
'include'
);
$pattern
=
static
::
matcher
(
'include'
);
return
preg_replace
(
$pattern
,
'$1<?php echo
render
$2->with(get_defined_vars()); ?>'
,
$value
);
return
preg_replace
(
$pattern
,
'$1<?php echo
view
$2->with(get_defined_vars()); ?>'
,
$value
);
}
}
/**
/**
...
...
laravel/helpers.php
View file @
9dbbc584
...
@@ -427,6 +427,20 @@ function has_php($version)
...
@@ -427,6 +427,20 @@ function has_php($version)
}
}
/**
/**
* Get a view instance.
*
* @param string $view
* @param array $data
* @return View
*/
function
view
(
$view
,
$data
=
array
())
{
if
(
is_null
(
$view
))
return
''
;
return
Laravel\View
::
make
(
$view
,
$data
);
}
/**
* Render the given view.
* Render the given view.
*
*
* @param string $view
* @param string $view
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment