Skip to content

danog\MadelineProto\Settings\Templates: Web template settings for the login and status pages.

Back to index

Author: Daniil Gentili daniil@daniil.it

Web template settings for the login and status pages.

The pages are rendered by native PHP templates (see {@see TemplateEngine}): to customize them, copy the templates you want to change from the builtin template directory ({@see TemplateEngine::BUILTIN_DIRECTORY}) to a directory of yours, and add it with {@see self::addDirectory()}.

Method list:

Methods:

getDirectories(): list<string>

Get the template directories, searched in order before the builtin one.

setDirectories(list<string> $directories): \danog\MadelineProto\Settings\Templates

Set the template directories, searched in order before the builtin one.

A directory only needs to contain the templates it overrides.

Parameters:

  • $directories: list<string> Template directories

addDirectory(string $directory): \danog\MadelineProto\Settings\Templates

Add a template directory, searched before the ones that were already added and the builtin one.

A directory only needs to contain the templates it overrides.

Parameters:

  • $directory: string Template directory

Generated by danog/phpdoc