承接 waldson/twig-module-for-kohana 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

waldson/twig-module-for-kohana

最新稳定版本:0.1

Composer 安装命令:

composer require waldson/twig-module-for-kohana

包简介

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

README 文档

README

TWIG Module for Kohana 3.3 to use templates as Kohana views seamlessly.

Usage

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

there is also a template controller:

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'));
	}

}

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-10