view - Laravel white page loading route -
i had login.blade.php
code, , decided replace new one. renamed old_login.blade.php
, create new file, in same path, name login.blade.php
.
after while, decided rollback old login page. delete login.blade.php
, , renamed old_login.blad.php
original name return back. no code edited, views.
the problem page returned blanck white page many comments (the comment's tag not closed).
i try make copy of view, called test.blade.php
, , change route view. diplay them correctly. if change time route myapp.login
display login.blade.php
view, won't work.
i try nothing changed. i'm using laravel 5.1.
the code insiede routes.php is
route::get('/', function () { return view('myapp.login'); });
the code inside login.blade.php (same ad test.blade.php) is:
@extends("app") @section("content") {!! form::open(["url" => "home"]) !!} <div class="form-group"> {!!form::label("username", "username:") !!} {!!form::text("usr_username", "luca", ["class" => "form-control"]) !!} </div> <div class="form-group"> {!!form::label("password", "password:") !!} {!!form::input("password", "usr_password", "mypass", ["class" => "form-control"]) !!} </div> <div class="form-group"> {!!form::submit("login", ["class" => "btn-primary form-control"]) !!} </div> {!! form::close() !!} @include("errors.list") @stop
so nonsense answer resolve problem: cutted code inside login.blade.php
, save file, pasted it, , saved time. display correctly.
Comments
Post a Comment