Smarty Template korrekt; LDAP Connects mit DB Connects
This commit is contained in:
@ -1,15 +1,11 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
|
||||
require '../vendor/autoload.php';
|
||||
use Smarty\Smarty;
|
||||
$smarty = new Smarty();
|
||||
$smarty->setTemplateDir('../html')
|
||||
->setCompileDir('../smarty_tmp/templates_c')
|
||||
->setCacheDir('../smarty_tmp/cache');
|
||||
include_once '../config/smarty.php';
|
||||
$smarty = new SmartyAdmin();
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
|
||||
|
||||
$smarty->display("$templatename");
|
||||
?>
|
||||
|
Reference in New Issue
Block a user