| |
| scriptlog:lib:core:themerendererinterface [2026/09/26 09:09] – admin admin | scriptlog:lib:core:themerendererinterface [2026/09/26 09:16] (current) – admin admin |
|---|
| ======= Methods (6) ======= | ======= Methods (6) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''render()'' | Render a full page: header, content template, and footer. | 28 | | | public | ''render()'' | Render a full page: header, content template, and footer. | 28 | |
| | public | ''renderHeader()'' | Include the current theme's header template. | 36 | | | public | ''renderHeader()'' | Include the current theme's header template. | 36 | |
| | public | ''renderContent()'' | Include a content template from the current theme directory. | 46 | | | public | ''renderContent()'' | Include a content template from the current theme directory. | 46 | |
| | public | ''renderFooter()'' | Include the current theme's footer template. | 51 | | | public | ''renderFooter()'' | Include the current theme's footer template. | 51 | |
| | public | ''render404()'' | Render a 404 response. | 60 | | | public | ''render404()'' | Render a 404 response. | 60 | |
| | public | ''getThemeDir()'' | Return the resolved absolute path to the active theme directory. | 70 | | | public | ''getThemeDir()'' | Return the resolved absolute path to the active theme directory. | 70 | |
| |
| |
| Sets the HTTP response code before any output is sent. | Sets the HTTP response code before any output is sent. |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$template'' | ''string'' | //required// | Content template name (without .php extension). | | | ''$template'' | ''string'' | //required// | Content template name (without .php extension). | |
| | ''$statusCode'' | ''int'' | ''200'' | HTTP status code (default 200). | | | ''$statusCode'' | ''int'' | ''200'' | HTTP status code (default 200). | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| to prevent directory traversal attacks. | to prevent directory traversal attacks. |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$template'' | ''string'' | //required// | Content template name (without .php extension). | | | ''$template'' | ''string'' | //required// | Content template name (without .php extension). | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |