chaclee / ci-blade

Laravel blade template engine for Codeigniter 3.0+!
GNU General Public License v3.0
19 stars 9 forks source link

master layout error help me #4

Open AyhanALTINOK opened 6 years ago

AyhanALTINOK commented 6 years ago

error codes

Fatal error: Method Xiaoler\Blade\View::__toString() must not throw an exception, caught InvalidArgumentException: View [master] not found. in application/libraries/Blade.php on line 0
A PHP Error was encountered
Severity: Error

Message: Method Xiaoler\Blade\View::__toString() must not throw an exception, caught InvalidArgumentException: View [master] not found.

Filename: libraries/Blade.php

Line Number: 0

Backtrace:

layout/master.blade.php file codes

<html>
<head>
    <title>App Name - @yield('title','test')</title>
</head>
<body>
@section('sidebar')
    This is the master sidebar.
@show

<div class="container">
    @yield('content')
</div>
</body>
</html>

welcome.blade.php file codes

@extends('layouts.master')

@section('title', 'Page Title')

@section('sidebar')
    @parent

    <p>This is appended to the master sidebar.</p>
@endsection

@section('content')
    <p>This is my body content.</p>
@endsection