# danog\MadelineProto\Settings\Templates: 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()}.


[Back to index](../../../index.html)

> 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:
* [`getDirectories(): list<string>`](#getDirectories)
* [`setDirectories(list<string> $directories): \danog\MadelineProto\Settings\Templates`](#setDirectories)
* [`addDirectory(string $directory): \danog\MadelineProto\Settings\Templates`](#addDirectory)

## Methods:
### <a name="getDirectories"></a> `getDirectories(): list<string>`

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



### <a name="setDirectories"></a> `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  



### <a name="addDirectory"></a> `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](https://phpdoc.daniil.it)
