Download the PHP package vintagesucks/twig-renderer without Composer
On this page you can find all versions of the php package vintagesucks/twig-renderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vintagesucks/twig-renderer
More information about vintagesucks/twig-renderer
Files in vintagesucks/twig-renderer
Download vintagesucks/twig-renderer
More information about vintagesucks/twig-renderer
Files in vintagesucks/twig-renderer
Vendor vintagesucks
Package twig-renderer
Short Description Twig 3.x for Yii 1.x
License BSD-3-Clause
Homepage https://github.com/vintagesucks/twig-renderer
Package twig-renderer
Short Description Twig 3.x for Yii 1.x
License BSD-3-Clause
Homepage https://github.com/vintagesucks/twig-renderer
Please rate this library. Is it a good library?
Informations about the package twig-renderer
Twig view renderer
This extension allows you to use Twig 3.x templates in Yii 1
Requirements
- Yii 1.1 or above
- PHP 7.2 or above
Installing
-
Install via Composer:
- Add the following to your config file 'components' section:
Usage
- See Twig syntax
- Current controller properties are accessible via
{{ this.pageTitle }} Yii::app()object is accessible via{{ App }}(Example:{{ App.name }})- Yii's core static classes (CHtml, for example) are accessible via
{{ C.ClassNameWithoutFirstC.Method }}(Example:{{ C.Html.textField(name,'value') }}) - To call functions or methods which return non-string results wrap these calls in a
voidfunction:{{ void(App.clientScript.registerScriptFile(...)) }}
Development
Run test matrix locally with act:
All versions of twig-renderer with dependencies
PHP Build Version
Package Version
Requires
twig/twig Version
^3.0.3
The package vintagesucks/twig-renderer contains the following files
Loading the files please wait ...