Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 3004

[extension] fenomviewrenderer

$
0
0
  1. Installation
  2. Usage

Yii 2 extension for render views using Fenom template engine.

Installation

composer require ensostudio/yii2-fenom

Usage

You can add a custom template engine by reconfiguring view component's behavior:

[
    'components' => [
        'view' => [
            'class' => yii\web\View::class,
            'renderers' => [
                'tpl' => [
                    'class' => ensostudio\yii2fenom\FenomViewRenderer::class,
                    // customize renderer options,
                ],
            ],
        ],
    ],
]

See https://www.yiiframework.com/doc/guide/2.0/en/tutorial-template-engines


Viewing all articles
Browse latest Browse all 3004

Trending Articles