Response
in package
Table of Contents
Properties
- $viewsDir : string
Methods
- getPage() : string
- renderPage() : void
- include selected page pass parameters to it
Properties
$viewsDir
private
string
$viewsDir
= __DIR__ . "/../../views"
Methods
getPage()
public
getPage(string $name) : string
Parameters
- $name : string
-
page name
Return values
string —page path
renderPage()
include selected page pass parameters to it
public
renderPage(string $name[, array<string|int, mixed> $exportParameters = array() ]) : void
Parameters
- $name : string
-
page name
- $exportParameters : array<string|int, mixed> = array()
-
parameters, that will be passed to rendered page