Änderungen

Addons erstellen

473 Byte hinzugefügt, 09:33, 10. Okt. 2018
/* Seiten im Kundenbereich */
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>