Im moment Mache ich es so.
|
PHP Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
require_once("./inc/acp/header.tpl");
if(isset($_GET['seite'])) {
if(!file_exists("./inc/".$_GET['seite']."/index.php"))
{
require_once $template['pfad'].'infomsg.tpl';
} else {
require_once "./inc/".$_GET['seite']."/index.php";
}
} else {
require_once "./inc/news/index.php";
}
require_once "./inc/templates/$theme/footer.tpl";
|
Um zum beischpiel die anderen ausganez zu machen Rufe ich diese Per require über die tpl auf.
so habe ich nicht all zu viel php im Quellcode.
Ist zwar nicht schön aber ich finde es tut seinen Zweck.
Gruß Opi62