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

NameExtensionDescription
unlessCoreNegated form of the if statement

Functions

NameExtensionDescription
callCoreCall a callback

Tests

NameExtensionDescription
callableCoreReturn whether the object is callable
instanceofCoreReturn whether a variable is an instantiated object of a certain class