PnyxCMS

A clean, lightweight PHP CMS. Open source and EUPL licensed.

Templates

A template lives in templates/{name}/ and is plain HTML with two constructs:

  • {$name} is a variable, set with $template -> set_var().
  • [name]...[/name] is a block, kept or removed with $template -> set_block().

The page frame is common-main.tpl; module templates are named module-{name}-*.tpl. A template's own interface strings go in templates/{name}/lang/{language}.php.

Values are inserted exactly as given. PnyxCMS trusts the developer, so escaping is the job of the component that sets them.