elcweb/twigdatabaseloader-bundle

允许您轻松覆盖或从数据库加载模板,优先于文件系统

安装: 4

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

dev-master 2016-01-14 14:36 UTC

This package is auto-updated.

Last update: 2024-09-08 00:47:43 UTC


README

Latest Stable Version Total Downloads

安装

步骤 1:使用 Composer 下载

{
    "require": {
        "elcweb/twigdatabaseloader-bundle": "dev-master"
    }
}

现在通过运行以下命令让 Composer 下载这个包

$ php composer.phar update elcweb/twigdatabaseloader-bundle

步骤 2:启用包

在内核中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Elcweb\TwigDatabaseLoaderBundle\TwigDatabaseLoaderBundle(),
    );
}

用法

将模板填充到模板表,它们将在文件系统之前加载。

许可证

此包受 MIT 许可证的约束。请参阅包中的完整许可证。

Resources/meta/LICENSE

报告问题或功能请求

问题和功能请求在 Github 问题跟踪器 中跟踪。

在报告错误时,最好在基于 Symfony 标准版 的基本项目中重现它,以便包的开发者可以通过简单地克隆它并遵循一些步骤来重现问题。