Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel刀片模板抛出错误“;意外的文件结尾";_Php_Laravel_Blade - Fatal编程技术网

Php Laravel刀片模板抛出错误“;意外的文件结尾";

Php Laravel刀片模板抛出错误“;意外的文件结尾";,php,laravel,blade,Php,Laravel,Blade,我从刀片服务器上的Laravel获得以下错误: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) 这就是我所做的 我的控制器: class AdminPostingController extends AdminBaseController { protected $layout = "

我从刀片服务器上的Laravel获得以下错误:

syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)
这就是我所做的

我的控制器:

class AdminPostingController extends AdminBaseController
{
    protected $layout = "Admin.master";

    function postNew()
    {
        $this->layout->content = View::make("Admin.index");
    }
}
我的Admin.index文件:

@extends("Admin.master')

@section("content")
    <p>Example P</p>
@stop

你在Admin.index文件中有一个输入错误

它应该是
@extends(“Admin.master”)
,而不是
@extends(“Admin.master”)
。它应该解决这个问题


编辑:如果我的原始答案不够清楚,问题是字符串开头有双引号,结尾有单引号,因此出现了语法错误。

而不是@extends(“Admin.master”),它应该是@extends(“Admin.master”)
,你能解释一下区别吗?每个文件使用的文件名是什么?查看文件的路径是什么?
@yield("content")