Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bound data / view variables #29

Open
AppSynergy opened this issue Apr 7, 2016 · 0 comments
Open

Bound data / view variables #29

AppSynergy opened this issue Apr 7, 2016 · 0 comments

Comments

@AppSynergy
Copy link

Hi,

I'm trying to include data with my templates. Both of these render nothing for {{ $title }}:

@include('partials/sighting-top', array('title' => 'My Title'))       // usual way
@include('partials/sighting-top')->with('title','My Title')            // should work to?

So I look at this:
blade.php#L332-L337

and wonder about ->with(get_defined_vars()).

Doesn't this just rewrite my $title to null, since no value is supplied?

view.php#L452-L463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant