public function clientPages() {
return Array("dsgvo" => "displayClientPage");
}
</source>
Die Methode könnte dann zum Beispiel so aussehen:
<source lang="php">
public function displayClientPage() {
global $pars, $title, $tpl, $var, $lang;
switch ($pars[0]) {
case 'av':
$title = $this->getLang("AV");
$tpl = __DIR__ . "/templates/av.tpl";
$var['av'] = false;
break;
default:
$title = $lang['ERROR']['TITLE'];
$tpl = "error";
break;
}
}
</source>