Package Data | |
---|---|
Maintainer Username: | pridemon |
Maintainer Contact: | pridemon@yandex.ru (Ilya Gudkov) |
Package Create Date: | 2015-07-03 |
Package Last Update: | 2015-09-03 |
Language: | PHP |
License: | BSD-3-Clause |
Last Refreshed: | 2024-11-19 03:17:12 |
Package Statistics | |
---|---|
Total Downloads: | 207 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 3 |
Total Forks: | 3 |
Total Open Issues: | 0 |
Laravel Blade Templating engine for Kohana 3.* Framework based on Philo Laravel-Blade standalone component
#Installation
add to your project by
composer require pridemon/kohana-blade
then run composer install
Include Kohana blade integration into your kohana bootstrap.php
file
Kohana::modules(array(
'blade' => MODPATH.'kohana-blade',
));
For a example, place Hello.blade.php
into application\views
directory
@extends('layouts.master')
@section('title', 'Page Title')
@section('sidebar')
@parent
<p>This is appended to the master sidebar. {{ $value2 }}</p>
@endsection
@section('content')
<p>This is my body content. {{ $value }}</p>
@endsection
Now, you can write something like this in controllers actions:
$value2 = 'foo';
$view = BladeView::factory('Hello');
$view->bind('value', $value);
$view->set('value2', $value2);
$value = 'bar';
$this->response->body($view->render());