Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

syntax error: unrecognized tag 'config_load'

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Kasi099
Smarty n00b


Joined: 21 Feb 2005
Posts: 3

PostPosted: Mon Feb 21, 2005 9:55 am    Post subject: syntax error: unrecognized tag 'config_load' Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Feb 21, 2005 11:16 am    Post subject: Reply with quote

hast du $smarty->plugins_dir richtig konfiguriert?
{config_load} ist eine plugin-funktion.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kasi099
Smarty n00b


Joined: 21 Feb 2005
Posts: 3

PostPosted: Mon Feb 21, 2005 11:42 am    Post subject: Reply with quote

[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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Feb 21, 2005 11:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Kasi099
Smarty n00b


Joined: 21 Feb 2005
Posts: 3

PostPosted: Mon Feb 21, 2005 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP