Smarty und tiefere Ordnerstrukturen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Smarty und tiefere Ordnerstrukturen

    Hallo!

    Ich hab mich gestern überwunden und benutze nun Smarty. Funktioniert alles, solange ich die Standartordnerstruktur beibehalte:

    PHP-Code:
    smarty
    templates
    templates_c 
    Leider ist meine Ordnerstruktur so:
    PHP-Code:
    admin
        
    modules
            
    modul_1
    smarty
    templates
        
    admin
            
    admin_modul_1
            
    admin_modul_2
            
    + ...
        + 
    modul_1
        
    modul_2
        
    modul_3
        
    + ...
    templates_c 
    Jetzt kommt folgender Fehler:
    PHP-Code:
    Fatal errorSmarty errorthe $compile_dir 'templates_c' does not exist, or is not a directoryin C:\xampplite\htdocs\cc\smarty\Smarty.class.php on line 1095 
    Was kann ich machen, damit er den templates_c Ordner findet?

    Quelltext:
    PHP-Code:
    // Datei: admin/modules/modul_1/index.php

    require(_SMARTY_DIR_."Smarty.class.php");

    $template_dir _TEMPLATES_DIR_."admin\\admin_navigation\\";

    $smarty = new Smarty;
    $smarty->display($template_dir.'add.tpl'); 
    EDIT:
    Aus der /root/index.php aufrufen funktioniert. Möchte den Kram aber in root/admin/modules/modul_1/index.php ausführen.

    Ich weiß leider echt nicht weiter. Mein Freund Google konnte mir bisher auch nicht weiterhelfen

    Gruß
    carapau
    Zuletzt geändert von carapau; 10.05.2007, 13:08.
    Lasst euch nicht lumpen, hoch den Humpen!
Lädt...
X