kohana-module twig-module-for-kohana
TWIG module for Kohana 3.3 to use twig templates as Kohana views seamlessly
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
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'));
}
}
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
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