ein_anderer_michael: smarty und dateipfade beim einbinden

Beitrag lesen

aber genau das ist doch da:
drwxrwxrwx    2 jflash   users          96 Sep 28 12:08 templates_c
castor:/www/_smarty_guestbook/_smarty #

Sorry, ich hatte da nicht so genau hingeguckt.
Ich poste dir die Konfiguration, wie ich sie auf meinem Server benutze. Vielleicht hilft dir das irgendwie weiter, mir fällt
sonst auch nichts weiter auf.

<?PHP

define ("T_BASEPATH", -- DOCROOT --);
define ("T_CONFPATH", T_BASEPATH."/etc/");
define ("T_TPLPATH", T_BASEPATH."/templates/");
define ("T_SMARTYPATH", T_BASEPATH."/smarty/libs/");

require_once(RIA_SMARTYPATH."Smarty.class.php");

class my_smarty extends Smarty
{
    function my_smarty ()
    {
        $this->template_dir = T_TPLPATH;
        $this->compile_dir = T_BASEPATH."/templates_c";
        $this->config_dir = T_CONFPATH;
        $this->force_compile = true;
    }
}

?>

<?PHP

/* Instanzierung */

$template = new my_smarty;

.
.
.

?>