2017 © Pedro PelĂĄez
 

kohana-module twig-module-for-kohana

TWIG module for Kohana 3.3 to use twig templates as Kohana views seamlessly

image

waldson/twig-module-for-kohana

TWIG module for Kohana 3.3 to use twig templates as Kohana views seamlessly

  • Monday, February 11, 2013
  • by waldson
  • Repository
  • 1 Watchers
  • 2 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Twig Module For Kohana 3.3

TWIG Module for Kohana 3.3 to use templates as Kohana views seamlessly., (*1)

Usage

// inside an action in your controller...
$this->response->body(Twig_View::factory('path/to/your/twig/view');

there is also a template controller:, (*2)

class Controller_Welcome extends Twig_Controller_Template {

    //default $template is twig/template
    public $template = 'path/to/your/template';

    function action_index()
    {
        $this->var = 'value';
        $this->foo = View::factory('your_normal_kohana_view');
        $this->bar = Twig_View::factory('your_twig_view', array('view_var' => 'view_value'));
    }

}

The Versions

11/02 2013

dev-master

9999999-dev

TWIG module for Kohana 3.3 to use twig templates as Kohana views seamlessly

  Sources   Download

MIT

The Requires

 

templating twig kohana

11/02 2013

0.1

0.1.0.0

TWIG module for Kohana 3.3 to use twig templates as Kohana views seamlessly

  Sources   Download

MIT

The Requires

 

templating twig kohana