|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Kasi099 Smarty n00b
Joined: 21 Feb 2005 Posts: 3
|
Posted: Mon Feb 21, 2005 9:55 am Post subject: syntax error: unrecognized tag 'config_load' |
|
|
ich habe die verzeichnisse richtig gesetzt (hoffe ich zumindest)
wenn ich die index.php ohne config_load im tpl ausführe funktioniert es.
was mich am meisten wundert ist, dass er config_load als unbekannt betitelt!
eine fehlermeldung die sich auf die verzeichnisse oder ähnliches bezieht würde ich ja verstehen aber warum erkennt er die funktion nicht?
sie gehört doch ins template oder??? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Feb 21, 2005 11:16 am Post subject: |
|
|
hast du $smarty->plugins_dir richtig konfiguriert?
{config_load} ist eine plugin-funktion. |
|
Back to top |
|
Kasi099 Smarty n00b
Joined: 21 Feb 2005 Posts: 3
|
Posted: Mon Feb 21, 2005 11:42 am Post subject: |
|
|
[php:1:665f0fa9bd]<?php
define('SMARTY_DIR','smarty/libs/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = '/websites/platz/div/sgs/stat/templates/';
$smarty->compile_dir = '/websites/platz/div/sgs/stat/templates_c/';
$smarty->config_dir = '/websites/platz/div/sgs/stat/configs/';
$smarty->cache_dir = '/websites/platz/div/sgs/stat/cache/';
?>[/php:1:665f0fa9bd]
gehört das nicht zum config_dir??? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Feb 21, 2005 11:50 am Post subject: |
|
|
Kasi099 wrote: | gehört das nicht zum config_dir??? |
nee. in config_dir steht wo config_load die config-files suchen soll. füge noch ein:[php:1:13fcb506f1]$smarty->plugins_dir = array(SMARTY_DIR . 'plugins');[/php:1:13fcb506f1]
hinzu. (SMARTY_DIR wird in Smarty.class.php gesetzt, ist also auf jeden fall definiert) |
|
Back to top |
|
Kasi099 Smarty n00b
Joined: 21 Feb 2005 Posts: 3
|
Posted: Mon Feb 21, 2005 11:53 am Post subject: |
|
|
wo pack ich dann die *.conf files rein?
habs jetz im config verz. unhd das funzt mit deiner zeile!
danke!!!
aber warum steht das dann nicht im manual drinne??? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|