- Home
 - Categorie
 - Coding e Sistemistica
 - Coding
 - [smarty] unable to read resource
 
- 
							
							
							
							
							
[smarty] unable to read resource
salve!
Qualcuno di voi usa Smarty? Esistono strumenti migliori di questo?Diciamo che sto avendo problemi nell'installazione di Smarty..
In un file prova.php ho scritto:
**require('Smarty.class.php');$smarty = new Smarty;
$smarty->template_dir = '../smarty/site/templates';
$smarty->compile_dir = '../smarty/site/templates_c';
$smarty->config_dir = '../smarty/site/configs';
$smarty->cache_dir = '../smarty/site/cache';$smarty->assign('name','Ned');
$smarty->display('index.tpl');**L'errore che ottengo è il seguente:
Smarty error: unable to read resource: "index.tpl" in ...Come mai?
 - 
							
							
							
							
							
Ho cambiato questa parte di codice:
$smarty->template_dir = './smarty/site/templates';
$smarty->compile_dir = './smarty/site/templates_c';
$smarty->config_dir = './smarty/site/configs';
$smarty->cache_dir = './smarty/site/cache';Adesso in locale mi funziona! Ma in remoto no!

Sapete darmi qualche consiglio?
 - 
							
							
							
							
							
./ =>root
../ =>indietro di una dir
prova tu
 oppure dicci come sono i files in remoto