Smarty spinnt

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Smarty spinnt

    Ich hab ein Problem mit Smarty...
    Template:

    Quellcode

    1. {debug}

    PHP:

    Quellcode

    1. require( 'smarty/smarty.class.php');
    2. $s = new Smarty();
    3. $s->display('test.tpl');


    Fehlermeldung:
    Fatal error: Smarty error: [in PFAD\debug.tpl line 101]: syntax error: unidentified token '\"template\"' (smarty_compiler.class.php, line 1419) in PFAD\smarty.class.php on line 1092


    Zeile:

    Quellcode

    1. <font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>


    Sobald " oder ' in den smartyeigenen Syntax kommt, kommt eine Fehlermeldung nach dieser Art.
    Google spuckt mir nur aus das magic_quotes_runtime auf off gestellt werden sollte und safe_mode off sein sollte.
    Beides ist aber der Fall!
    Übrigens läuft Smarty in einem anderen Ordner auf diesem System perfekt.
    ?(
  • BennyBunny schrieb:

    Übrigens läuft Smarty in einem anderen Ordner auf diesem System perfekt.

    Das spricht wohl dafür, dass es sich um ein Konfigurationsproblem handelt...

    Dachte ich auch anfangs, hab die Datein aber 1:1 kopiert und dann nur den Pfad entsprechend geändert.

    BennyBunny schrieb:

    Quellcode

    1. echo ini_get('magic_quotes_runtime')

    Gibt das wirklich off zurück!?

    Anfangs nichts, durch var_dump ein leeren String.
    In php.ini steht jedoch das es auf off gestellt ist und phpinfo() auch.
    Ich hab jetzt in die .htaccess "php_flag magic_quotes_runtime off" eingefügt
    und nun bekomme ich ein string(1) "0" von var_dump(ini_get('magic_quotes_runtime')) zurück.
    Am Fehler hat sich nichts geändert.