【问题标题】:Laravel 5 - View [app] not foundLaravel 5 - 未找到查看 [应用程序]
【发布时间】:2015-08-20 07:40:18
【问题描述】:

我使用:Laravel API/Scaffold/CRUD Generator for laravel 5, 我生成 1 个 CRUD,但不工作。

这是错误:

ErrorException in FileViewFinder.php line 140:
View [app] not found. (View: C:\wamp\www\laravel\resources\views\istvans\index.blade.php)

有什么问题?

【问题讨论】:

  • index.blade.php 是否包含@extends('app') 或类似的刀片方法?该错误告诉您它在您的视图目录中找不到app.blade.php 文件。
  • 我创建了:app.blade.php,现在问题已经解决了......请回答

标签: laravel-5


【解决方案1】:

创建一个空的app.blade.php 并输入:

<html>
<head>
    @section('head')
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    @show
</head>
<body>
<div class="container">
    @yield('content')
</div>

@section('footer_scripts')
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
@show
</body>
</html>

【讨论】:

    猜你喜欢
    • 2015-11-28
    • 2017-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-19
    • 2018-03-09
    • 1970-01-01
    • 2019-09-11
    相关资源
    最近更新 更多