找不到View layouts.clientLayout.client_header] [英] View layouts.clientLayout.client_header] not found

查看:69
本文介绍了找不到View layouts.clientLayout.client_header]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个在我的开发环境(本地主机)上可以正常运行的项目,我已经将其发布到共享的虚拟主机上,现在出现以下错误

Hi I have this project that is working perfectly on my development environment (Local host) I have published it to a a shared vhost and now I am getting the errors below

    ErrorException (E_ERROR)
    View [layouts.clientLayout.client_header] not found. (View: /home/ovzejahb/domains/alphaphotography.co.ke/public_html/book/resources/views/layouts/clientlayout/client_design.blade.php) 
    (View: /home/ovzejahb/domains/alphaphotography.co.ke/public_html/book/resources/views/layouts/clientlayout/client_design.blade.php)


    Previous exceptions
    View [layouts.clientLayout.client_header] not found. (View: /home/ovzejahb/domains/alphaphotography.co.ke/public_html/book/resources/views/layouts/clientlayout/client_design.blade.php) (0)
    View [layouts.clientLayout.client_header] not found. (0)

我会做错什么,因为我的文件夹结构与开发环境中的完全一样

What could I be doing wrong because I have the folder structure exactly like it is in the development environment

在我的home.blade.php文件中,它在views文件夹中有这个

In my home.blade.php that it in the views folder i have this

  @extends('layouts.clientLayout.client_design')
  @section('content')

然后在layouts/client layout文件夹中,我有以下文件

and then in the layouts/client layout folder I have the following files

client_design.blade.php

client_design.blade.php

client_footer.blade.php

client_footer.blade.php

client_header.blade.php

client_header.blade.php

client_sidebar.blade.php

client_sidebar.blade.php

在client_design.blade.php文件中,我具有下面的代码,用于同时包含页眉,页脚,侧边栏和内容

In the client_design.blade.php file I have the code below for including the header, footer, sidebar and content together

    <body>
    <!--Header part-->
    @include('layouts.clientLayout.client_header')
    <!--End Header part-->
    <!--Sidebar part-->
    @include('layouts.clientLayout.client_sidebar')
    <!--End Sidebar part-->
    <!--main-container-part-->
    @yield('content')
    <!--end-main-container-part-->
    <!--Footer part-->
    @include('layouts.clientLayout.client_footer')
    <!--End Footer part-->
    <!--Jquery-->

推荐答案

您使用clientLayout包含了视图,但是错误将路径显示为layouts/clientlayout/client_design.blade.php.它可能在您的本地计算机上有效,因为在Windows中,文件路径不区分大小写,而在Linux上,文件路径是区分大小写的.

You include the views using clientLayout but the error shows the path as layouts/clientlayout/client_design.blade.php. It probably works on your local machine because in Windows, file paths are case insensitive where as on Linux they are case sensitive.

尝试使用大写字母L重命名该文件夹,或将视图更新为小写字母版本.

Try renaming the folder with an uppercase L or update your views to the lowercase version.

这篇关于找不到View layouts.clientLayout.client_header]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆