TwigEnvironment

Type
Class
Namespace
Craft
Inherits
Craft\TwigEnvironment » Twig_Environment
Since
2.5

TwigEnvironment class.

See also http://craftcms.com

View source

Protected Properties

PropertyDescription
$safeMode

$safeMode

Signature

protected  $safeMode = null

Public Methods

MethodDescription
__construct()TwigEnvironment constructor.
isSafeMode()
loadTemplate()
setSafeMode()

__construct()

TwigEnvironment constructor.

View source

Arguments

  • $loader (\Craft\Twig_LoaderInterface)
  • $options

Signature

public void __construct ( \Twig_LoaderInterface $loader, array $options )

isSafeMode()

View source

Returns

mixed

Signature

public mixed isSafeMode ( )

loadTemplate()

View source

Arguments

  • $name
  • $index

Signature

public void loadTemplate ( $name, $index = null )

setSafeMode()

View source

Arguments

  • $safeMode

Signature

public void setSafeMode ( $safeMode )