Exemplo n.º 1
0
//menu
$menuheader = "";
if ($this->includer->include_pratikclass("menu")) {
    $instanceMenu = new PratikMenu($this->initer);
    $menuheader = $instanceMenu->menu_loader("main");
}
$this->tpl->remplir_template("menuheader", $menuheader);
//case
$caseauth = "";
$caseuserinfo = "";
if ($this->includer->include_pratikclass("case")) {
    $instanceCase = new PratikCase($this->initer);
    $caseauth = $instanceCase->case_loader("auth");
    $caseuserinfo = $instanceCase->case_loader("userinfo");
}
$this->tpl->remplir_template("caseauth", $caseauth);
$this->tpl->remplir_template("caseuserinfo", $caseuserinfo);
//colonne
$colonnedroite = "";
$colonnegauche = "";
if ($this->includer->include_pratikclass("colonne")) {
    $instanceColonne = new PratikColonne($this->initer);
    $colonnedroite = $instanceColonne->colonne_loader("colonnedroite");
    $colonnegauche = $instanceColonne->colonne_loader("colonnegauche");
}
$this->tpl->remplir_template("colonnedroite", $colonnedroite);
$this->tpl->remplir_template("colonnegauche", $colonnegauche);
//content header
$instanceHeader = new YourHeader($this->initer);
$headercontent = $instanceHeader->headercontent_loader();
$this->tpl->remplir_template("headercontent", $headercontent);
<?php

/*
to view the initer :
echo $this->showIniter(true); exit;
*/
//ajout des colonnes
if (isset($this->includer) && $this->includer->include_pratikclass("colonne")) {
    $instanceColonne = new PratikColonne($this->initer);
    //colonnes
    $instanceColonne->addColonne('colonnedroite', 'colonnedroite', 'colonnedroite');
    $instanceColonne->addColonne('colonnegauche', 'colonnegauche', 'colonnegauche');
    //droits des colonnes
    if (isset($this->instanceDroit)) {
        $this->instanceDroit->addGrantTo("colonnedroite", "colonne", "public");
        $this->instanceDroit->addGrantTo("colonnegauche", "colonne", "public");
    }
    //cases in colonnes
    //$instanceColonne->addCaseToColonne('auth','colonnedroite','1');
    //$instanceColonne->addCaseToColonne('userinfo','colonnedroite','2');
    //...
}