Download the PHP package ibibicloud/thinkphp8-template without Composer
On this page you can find all versions of the php package ibibicloud/thinkphp8-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ibibicloud/thinkphp8-template
More information about ibibicloud/thinkphp8-template
Files in ibibicloud/thinkphp8-template
Download ibibicloud/thinkphp8-template
More information about ibibicloud/thinkphp8-template
Files in ibibicloud/thinkphp8-template
Vendor ibibicloud
Package thinkphp8-template
Short Description 基于think-template=v3.0.2
License Apache-2.0
Package thinkphp8-template
Short Description 基于think-template=v3.0.2
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package thinkphp8-template
thinkphp8-template
基于 https://github.com/top-think/think-template/tree/v3.0.2
安装
composer require ibibicloud/thinkphp8-template
文档
https://doc.thinkphp.cn/v8_0/template_engine.html https://doc.thinkphp.cn/@think-template/default.html
用法示例
<?php
namespace think;
require __DIR__.'/vendor/autoload.php';
// 设置模板引擎参数
$config = [
'view_path' => './template/',
'cache_path' => './runtime/',
'view_suffix' => 'html',
];
$template = new Template($config);
// 模板变量赋值
$template->assign(['name' => 'think']);
// 读取模板文件渲染输出
$template->fetch('index');
// 完整模板文件渲染
$template->fetch('./template/test.php');
// 渲染内容输出
$template->display($content);
支持静态调用
use think\facade\Template;
Template::config([
'view_path' => './template/',
'cache_path' => './runtime/',
'view_suffix' => 'html',
]);
Template::assign(['name' => 'think']);
Template::fetch('index',['name' => 'think']);
Template::display($content,['name' => 'think']);
All versions of thinkphp8-template with dependencies
PHP Build Version
Package Version
The package ibibicloud/thinkphp8-template contains the following files
Loading the files please wait ....