TwigEnvironment
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\TwigEnvironment »
Twig_Environment
- Since
- 2.5
TwigEnvironment class.
See also http://craftcms.com
View source (opens new window)
# Protected Properties
Property | Description |
---|---|
$safeMode |
# $safeMode
Signature
protected $safeMode = null
# Public Methods
Method | Description |
---|---|
__construct() | TwigEnvironment constructor. |
isSafeMode() | |
loadTemplate() | |
setSafeMode() |
# __construct()
TwigEnvironment constructor.
View source (opens new window)
Arguments
$loader
(\Craft\Twig_LoaderInterface
)$options
Signature
public void __construct ( \Twig_LoaderInterface $loader, array $options )
# isSafeMode()
Signature
public mixed isSafeMode ( )
# loadTemplate()
Signature
public void loadTemplate ( $name, $index = null )
# setSafeMode()
Signature
public void setSafeMode ( $safeMode )