2017 © Pedro Peláez
 

kohana-module kohana-blade

Integration of Laravel Blade Templating engine for Kohana Framework

image

pridemon/kohana-blade

Integration of Laravel Blade Templating engine for Kohana Framework

  • Thursday, September 3, 2015
  • by pridemon
  • Repository
  • 2 Watchers
  • 3 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Kohana Blade

Laravel Blade Templating engine for Kohana 3.* Framework based on Philo Laravel-Blade standalone component, (*1)

Installation

add to your project by, (*2)

composer require pridemon/kohana-blade

then run composer install, (*3)

Include Kohana blade integration into your kohana bootstrap.php file, (*4)

Kohana::modules(array(

     'blade'        => MODPATH.'kohana-blade',

    ));

Usage

For a example, place Hello.blade.php into application\views directory, (*5)

@extends('layouts.master')

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

@section('sidebar')
    @parent

    <p>This is appended to the master sidebar. {{ $value2 }}</p>
@endsection

@section('content')


This is my body content. {{ $value }}, (*6)

@endsection

Now, you can write something like this in controllers actions:, (*7)

$value2 = 'foo';

$view = BladeView::factory('Hello');

$view->bind('value', $value);
$view->set('value2', $value2);
$value = 'bar';

$this->response->body($view->render());

The Versions

03/09 2015

dev-master

9999999-dev

Integration of Laravel Blade Templating engine for Kohana Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Ilya Gudkov

blade templates kohana