Open source CMS

Templates

Arikaim uses Twig templating engine

Functions

Component

Display html component

{{ component(name, params) }}
Property Type Description
name string required Html component name
params array optional Component parameters
componentProperties

Load component properties json file

{% set properties = componentProperties(name, language) %}
Property Type Description
name string required Html component name
language string optional Language code or leave empty for current language
Return array Components propeties
createModel

Create ORM model instance.

{% set moldel = createModel(className, extension) %}
Property Type Description
className string required Model class name.
extension string required Extension name
Return object | null

Filters

dateFormat

Date format filter.

{{ timestamp|dateFormat(formatName) }}
Property Type Description
formatName string optional Format name or empty for default format.
Return string
timeFormat

Time format filter.

{{ timestamp|timeFormat(formatName) }}
Property Type Description
formatName string optional Format name or empty for default format.
Return string
dateTimeFormat

Date time format filter.

{{ timestamp|dateTimeFormat(formatName) }}
Property Type Description
formatName string optional Format name or empty for default format.
Return string