Support the ongoing development of Laravel.io →
posted 10 years ago
Views Blade
Last updated 1 year ago.
0

@extends can't be indented, you can't put anything before it even whitespace.

Last updated 1 year ago.
0

I erroneously added the indents while pasting the code block above. The actual template code does not have any indents. Actually this is the first line in the template file with no indentation at all.

Other template files which use same master are working fine. If I rename this template file, change the View::make() call accordingly and then revert it back to original, it would probably start working. Not sure why this is happening.

Last updated 1 year ago.
0

Does the files not working have BOM?

Last updated 1 year ago.
0

Great! that was spot on. I was editing on vim in linux environment, I hadn't expected BOM to interfere.

:set nobomb before saving did the trick.

Thanks a lot Gergely. Laravel community is awesome!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

niteshn niteshn Joined 20 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.