Provides Twig support for commonly used FuelPHP classes and methods.

 Methods

fuel_version()

fuel_version() 

getFilters()

getFilters() 

inherited_from Twig_Extension::getFilters()

Sets up all of the functions this extension makes available.

getFunctions() : array

Returns

array

getGlobals()

getGlobals() 

inherited_from Twig_Extension::getGlobals()

Gets the name of the extension.

getName() : string

Returns

string

getNodeVisitors()

getNodeVisitors() 

inherited_from Twig_Extension::getNodeVisitors()

getOperators()

getOperators() 

inherited_from Twig_Extension::getOperators()

getTests()

getTests() 

inherited_from Twig_Extension::getTests()

getTokenParsers()

getTokenParsers() 

inherited_from Twig_Extension::getTokenParsers()

initRuntime()

initRuntime() 

inherited_from Twig_Extension::initRuntime()

theme_asset_css()

theme_asset_css($stylesheets, $attr, $group, $raw) 

Parameters

$stylesheets

$attr

$group

$raw

theme_asset_img()

theme_asset_img($images, $attr, $group) 

Parameters

$images

$attr

$group

theme_asset_js()

theme_asset_js($scripts, $attr, $group, $raw) 

Parameters

$scripts

$attr

$group

$raw

Provides the url() functionality.

url(string $uri, array $named_params) : string

Generates a full url (including domain and index.php).

Parameters

$uri

string

URI to make a full URL for (or name of a named route)

$named_params

array

Array of named params for named routes

Returns

string