php - Blade syntax @extends loads second HTML view and then the first HTML view -


i new laravel , blade template engine. issue: file form.blade.php

@extends('front.header') @extends('front.footer')

loads front/footer.blade.php first , contents of front/header.blade.php

please find attached snap shot of view source.

i have checked few answers in stackoverflow white space.i dont seem have any.

regards, jigneshenter image description here

you cannot @extends 2 parents. if want include view, should use @include instead

like :

@include('front.header') content @include('front.footer') 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -