|
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 |
sparrox Smarty n00b
Joined: 06 Mar 2010 Posts: 3
|
Posted: Sat Mar 06, 2010 5:12 pm Post subject: Problème mise en ligne site |
|
|
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 |
|
sparrox Smarty n00b
Joined: 06 Mar 2010 Posts: 3
|
Posted: Sun Mar 07, 2010 12:59 am Post subject: |
|
|
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 |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Mon Mar 08, 2010 7:15 am Post subject: |
|
|
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 |
|
sparrox Smarty n00b
Joined: 06 Mar 2010 Posts: 3
|
Posted: Mon Mar 08, 2010 5:29 pm Post subject: |
|
|
J'ai finalement résolu mon problème!!! Mais merci d'avoir répondu |
|
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
|