laravel-5 - Laravel Blade '@' 函数
问题描述
在下面的“@yield”功能不起作用,它显示为正常单词,不像刀片功能关键字
@yield('content')
</div>
@yield('footer')
解决方案
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Admin | @yield('title')</title>
<!--Has all the sylesheets attached already!-->
@include('Elements/_head')
<!--Custom CSS or CSS Files for particular page-->
@yield('styles')
</head>
<body class="hold-transition skin-blue sidebar-mini" onload="startTime()">
<div class="wrapper">
<!--Application Header-->
@include('Elements/_header')
<!--Application Sidebar-->
@include('Elements/_side')
<!--Page Content Main-->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
@yield('title')
<small></small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<img id="loader" src="{{url::asset('images/loading.gif')}}">
@yield('content')
</section>
</div>
<!--Footer of Application-->
@include('Elements/_footer')
</div>
<!--Has all the scripts already attached-->
@include('Elements/_base')
<!--Custom scripts for particular pages-->
@yield('scripts')
</body>
</html>
推荐阅读
- excel-formula - 使用 SUMPRODUCT 公式 R1C1 中的变量进行偏移
- javascript - 检测手机缺口的更好方法?
- python - 为什么我的字典排序功能不能正常工作?
- angular - 在 Angular 中加载 DOM 之前在服务中运行函数
- amazon-web-services - 使用 AWS Lambda 函数和 Amazon S3 事件 (JAVA) 创建文件
- python - 来自两个父母的遗产
- spring - Spring 按页面值排序
- regex - 我可以使用正则表达式来指定与正确数量的左括号和右括号匹配的模式吗?
- vba - VBA hide and show sheets based on YES/NO and worksheet name
- html - 如何在 Angular 中创建一个带有不同颜色的左右段落的框?