The Core Extension
December 20, 2013 ยท View on GitHub
<?php
$loader = new Twig_Loader_Filesystem('/path/to/templates');
$twig = new Twig_Environment($loader);
$twig->addExtension(new \KzykHys\TwigExtensions\Extension\Core());
Tags
| Name | Extension | Description |
|---|---|---|
| unless | Core | Negated form of the if statement |
Functions
| Name | Extension | Description |
|---|---|---|
| call | Core | Call a callback |
Tests
| Name | Extension | Description |
|---|---|---|
| callable | Core | Return whether the object is callable |
| instanceof | Core | Return whether a variable is an instantiated object of a certain class |