I'm trying to learn Laravel using it for one site, but I'm having trouble doing some work is. / P>
I have a However, there are some external things that just want to load on some pages. I am including personalized scenes from the title like this: In more views, I am expanding the layout like this: I use my Thank you! In your Layout.blade.fp childview.blade.php layout.blade.php file that holds all my global markup. Content like header, footer etc. I would like some external stuff like stylesheets and scripts like
& lt; Head & gt; like:
{{HTML :: script ('js / bootstrap.min.js'); }}
& lt; Div id = "content" & gt; @shield ('content') & lt; / Div & gt;
@extends ('layout') @section ('content') & Lt; H1 & gt; Some content & lt; / H1> @stop
& lt; Head & gt; How do I use the
HTML :: script type function to include content from a scene in ?
layout.bad.fp ?
layout.blade.fp , your
HTML: : Call script in
section () and
@. Show the tag, and just expand it later in your child's view, as you did with the section, but using
@parent to include the contents of the parent Also do the example:
@section ('javascript') {{HTML :: script ('js / Jquery js')}} {{HTML :: script ('js / bootstrap.min.js')}} @ show
@extends ('layout') // ... @section ('javascript') @parent {{HTML :: script ('js / customScript.js')}} @stop
No comments:
Post a Comment