blade template laravel get stuck with wamp server -



blade template laravel get stuck with wamp server -

i new in laravel. watched tutorials on youtube , seek did blade template couldn't load, gave me message

whoops, looks went wrong.

my code

route.php

<?php route::get('list', 'hscontroller@getlist');

hscontroller.php

<?php class hscontroller extends basecontroller { public function getlist() { homecoming view::make('list'); } }

in views folder have folder named layout include files such as: main.blade.php, foot.blade.php, menu.blade.php

main.blade.php

<!doctype html> <html> <head> <meta charset="utf-8"> <title>test</title> <link rel="stylesheet" type="text/css" href=""> </head> <body> @include('layout.menu'); @yield('content'); @include('layout.foot'); </body> </html>

foot.blade.php

<div> footer. lorem ipsum dolor sit down amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ut wisi enim advertisement minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat </div>

menu.blade.php

<nav> <ul> <li>home</li> <li>about</li> <li>test</li> </ul> </nav>

and of import thing list.blade.php :

@extends('layouts.main') @section('content') <p>this body content.</p> @stop

please right code give thanks much

first error in list.blade.php file

you have:

@extends('layouts.main')

it should be:

@extends('layout.main')

because folder name layout. possible problem name of layout directory. should alter lowercase layout - because on linux webserver won't work.

laravel laravel-4 wamp blade

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -