TemplateMode

Type
Abstract Class
Namespace
Craft
Inherits
Craft\TemplateMode
Since
2.6

The TemplateMode class is an abstract class that defines whether the {@link TemplateService} is in a Control Panel or Site context.

This class is a poor man's version of an enum, since PHP does not have support for native enumerations.

See also http://craftcms.com

View source (opens new window)

# Constants

Constant Description
CP
Site