chaclee / ci-blade Goto Github PK
View Code? Open in Web Editor NEWLaravel blade template engine for Codeigniter 3.0+!
License: GNU General Public License v3.0
Laravel blade template engine for Codeigniter 3.0+!
License: GNU General Public License v3.0
Hi,
I would like to understand how can I implement this in a legacy project of codeigniter?
I was trying figure it out.
I think that you added the dependency in the composer.json and the Blade.php in the libraries folder.
is that correct?
Hi
I noticed that we can not access to the current controller via $this
; How to access to controller?
Thanks a lot
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
When try to access session inside view ite throw error.
I have tried fallowing inside view $this->session->flashdata('error') )
Severity: Notice Message: Undefined property: Xiaoler\Blade\Engines\CompilerEngine::$session
Fatal error: Call to a member function flashdata() on null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.