承接 schranz-templating/symfony-smarty-integration 相关项目开发

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

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

schranz-templating/symfony-smarty-integration

Composer 安装命令:

composer require schranz-templating/symfony-smarty-integration

包简介

A integration of template renderer into symfony via smarty template engine.

README 文档

README

Integrate the templating Smarty Adapter into the Symfony Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/symfony-smarty-integration

Register the Bundle class in your config/bundles.php or Kernel file:

return [
    // ...
    Schranz\Templating\Integration\Symfony\Smarty\SchranzTemplatingMustacheBundle::class => ['all' => true],
];

Configuration

The Smarty Integration has the following configuration available:

schranz_templating_smarty:
    default_path: '%kernel.project_dir%/templates'
    cache: '%kernel.cache_dir%/smarty'

None of the configuration is required.

default_path

type: string default: '%kernel.project_dir%/templates'

The path to the directory where Symfony will look for the application Smarty templates by default.

cache

type: string default: '%kernel.cache_dir%/smarty'

Before using the Smarty templates to render some contents, they are compiled into regular PHP code. Compilation is a costly process, so the result is cached in the directory defined by this configuration option.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固