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

installation de smarty probleme de configuration

 
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: French
View previous topic :: View next topic  
Author Message
fongus
Smarty Rookie


Joined: 25 Oct 2006
Posts: 12

PostPosted: Sun Nov 26, 2006 3:19 pm    Post subject: installation de smarty probleme de configuration Reply with quote

bonjour,

je fais actuellement une migration de mon site vers un autre serveur le problème étant que la configuration de ce serveur n'est pas la même que l'ancien et il m'est impossible de faire fonctionner Smarty correctement.

j'ai une erreur classique du type :

Warning: Smarty error: unable to read resource: "emission.tpl" in /home/httpd/html/radiocampusbesancon.org/Smarty/libs/Smarty.class.php on line 1095

dans mon ancien site chez free tout marchait correctement je le répète.
Que dois je faire pour faire fonctionner smarty correctement ???
ou que dois je dire a l'admin du serveur pour corriger cette erreur ?

merci d'avance pour toute réponse.
Back to top
View user's profile Send private message
reb
Smarty Rookie


Joined: 17 Aug 2005
Posts: 23

PostPosted: Sun Nov 26, 2006 5:58 pm    Post subject: Reply with quote

Vérifier les

Code:

        $smarty->template_dir
        $smarty->compile_dir
        $smarty->config_dir
        $smarty->cache_dir


See
http://smarty.php.net/sampleapp/sampleapp_p1.php

Last edited by reb on Wed May 05, 2010 10:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
fongus
Smarty Rookie


Joined: 25 Oct 2006
Posts: 12

PostPosted: Mon Nov 27, 2006 7:06 pm    Post subject: Reply with quote

salut, je les ai vérifié, mais rien à faire.
mes dossiers cache, template_c template...
sont installés à la racine de mon site.
voici mon fichier de configuration

Code:

<?
require_once ('Smarty/libs/Smarty.class.php');

class MySmarty extends Smarty{
   var $smDir='./Smarty/';
   function __construct(){
      $this->Smarty();
      $this->template_dir=$this->smDir.'templates/';
      $this->compile_dir=$this->smDir.'templates_c/';
      $this->config_dir=$this->smDir.'conf/';
      $this->cache_dir=$this->smDir.'cache/';
      echo $this->template_dir;
   }
}
?>      

je ne sais pas si ca pourra aider mais enfin si tu trouve ce qui cloche ?
Back to top
View user's profile Send private message
ciboulette
Smarty Regular


Joined: 13 Jul 2006
Posts: 45

PostPosted: Tue Nov 28, 2006 3:28 am    Post subject: Reply with quote

Code:

var $smDir='/home/httpd/html/radiocampusbesancon.org/Smarty/';


nan?
Back to top
View user's profile Send private message
fongus
Smarty Rookie


Joined: 25 Oct 2006
Posts: 12

PostPosted: Wed Nov 29, 2006 8:54 am    Post subject: Reply with quote

salut je viens de tester mais cela ne marche toujours pas. il me met la meme erreur avec l'adresse complete

est ce que cela peut venir des droits d'acces au fichier ???
Back to top
View user's profile Send private message
ciboulette
Smarty Regular


Joined: 13 Jul 2006
Posts: 45

PostPosted: Sat Dec 02, 2006 6:14 pm    Post subject: Reply with quote

hummm normalement non, essaye voir avec un smarty de base avec l'exmple de demo dans le fichier zip
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: French 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