Giter Club home page Giter Club logo

ci-blade's People

Contributors

cdanek1968 avatar chaclee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ci-blade's Issues

Missing documentation

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?

Can't call ci inbuilt library inside view

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

master layout error help me

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.