I am working on a site that have 2 different main templates but sometimes the views are the same, example:
kk.waiting.blade.php:
@extends('kk.template')
@section('content')
Waiting For Approval
@stop
cc.waiting.blade.php
@extends('cc.template')
@section('content')
Waiting For Approval
@stop
I wonder if there is a way to use a variable like this:
waiting.blade.php
@extends({{$var}}'.template')
@section('content')
Waiting For Approval
@stop
Thanks!
@extends($var. '.template');
不需要使用{{}},因为我已经在@里面的php标记中
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.