Blogger Information
Blog 9
fans 0
comment 0
visits 7509
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
blade摸板引擎
高杰
Original
722 people have browsed it
  1. 摸板所在位置:resources/views

  2. 摸板文件后缀必须为.blade.php

  3. 摸板里边可以直接使用PHP语法

  4. blade摸板引擎需要注意的点为(1)@{{变量}} 进行原样输出,避免和vue.js等前端写法冲突(2){{!!变量}}让摸板引擎在解析的时候,不要使用e函数。

  5. controller引入摸板文件的时候,使用return view('摸板文件名');

  6. 传输变量的时候,最好用数组进行传输 $data = array(); $data['title']='PHP中文网'; return view('index',$data); 在index摸板中直接使用{{$title}}就可以输出title。

Correcting teacher:WJWJ

Correction status:qualified

Teacher's comments:写的不错,认真!
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post