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

Problème mise en ligne site

 
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
sparrox
Smarty n00b


Joined: 06 Mar 2010
Posts: 3

PostPosted: Sat Mar 06, 2010 5:12 pm    Post subject: Problème mise en ligne site Reply with quote

Bonjour j'ai réalisé un portfolio en utilisant Smarty (dernière version). Lors de la mise en ligne (je suis chez OVH) j'ai quelques soucis.

Fatal error: Cannot instantiate non-existent class: smarty in /homez.312/kimpalet/www/index.php on line 3

<?php
define('SMARTY_DIR', '/homez.312/kimpalet/www/Smarty-2.6.26/libs/Smarty.class.php');
$smarty = new Smarty; <--###LIGNE 3###
$smarty->template_dir = '/homez.312/kimpalet/www/smarty/templates';
$smarty->config_dir = '/homez.312/kimpalet/www/smarty/configs';
$smarty->cache_dir = '/homez.312/kimpalet/www/smarty/cache';
$smarty->compile_dir = '/homez.312/kimpalet/www/smarty/templates_c';
$smarty->assign('accueil','class="on"');
$smarty->display('header.tpl');
$smarty->display('index.tpl');
$smarty->display('footer.tpl');
?>

J'ai redéfini le chemin de la lib mais ça ne marche toujours pas... HELP!
Back to top
View user's profile Send private message
sparrox
Smarty n00b


Joined: 06 Mar 2010
Posts: 3

PostPosted: Sun Mar 07, 2010 12:59 am    Post subject: Reply with quote

J'ai compris qu'il fallait modifier la commande include_path dans mon fichier php.ini j'aimerais juste savoir si quelqu'un pourrait m'aider modifier cette valeur.
j'ai utiliser un .htaccess mais il semblerait que cela ni fasse rien.
Back to top
View user's profile Send private message
Gowser
Smarty Pro


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Mon Mar 08, 2010 7:15 am    Post subject: Reply with quote

Bonjour,

Pourriez vous indiquer les valeurs modifiées (php.ini ainsi que .htaccess) dans votre php.ini ainsi que la valeur attendue.
Back to top
View user's profile Send private message Send e-mail
sparrox
Smarty n00b


Joined: 06 Mar 2010
Posts: 3

PostPosted: Mon Mar 08, 2010 5:29 pm    Post subject: Reply with quote

J'ai finalement résolu mon problème!!! Mais merci d'avoir répondu
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