abstract class AbstractController extends AbstractController (View source)

Handles database related logic

Properties

protected Response $response from  AbstractController
protected DatabaseInterface $dbi from  AbstractController
protected Template $template from  AbstractController
protected string $db

Methods

__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db)

No description

void
render(string $template, array $data = [])

No description

void
addScriptFiles(array $files)

No description

Details

__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db)

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used
string $db Database name

protected void render(string $template, array $data = [])

Parameters

string $template Template path name.
array $data Associative array of template variables.

Return Value

void

protected void addScriptFiles(array $files)

Parameters

array $files

Return Value

void