定制 ethan-chen-li/think-template-swoft 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ethan-chen-li/think-template-swoft

Composer 安装命令:

composer require ethan-chen-li/think-template-swoft

包简介

the php template engine for swoft 2.x

README 文档

README

基于XML和标签库的编译型模板引擎

基于Thinkphp官方修改

该版本为开发版本,不保证功能长期支持。

安装方法

composer require ethan-chen-li/think-template-swoft

使用方法:

	$dir = __DIR__."/../../";
	$config = [
		// 模板文件目录
		'view_path'   => $dir.'/resource/views/',
		// 模板编译缓存目录(可写)
		'cache_path'  => $dir.'/runtime/template/',
		// 模板文件后缀
		'view_suffix' => 'html',
	];
	$template = new Template($config);
	$data=[];
	return $template->fetch("list",$data); 

请勿使用assign方法或其他方法,不保证功能正常。 模板标签完美支持。

详细用法参考开发手册

统计信息

  • 总下载量: 166
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固