|
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 |
nlandero Smarty n00b
Joined: 18 Feb 2009 Posts: 2
|
|
Back to top |
|
JoelG Smarty n00b
Joined: 24 Feb 2009 Posts: 1
|
Posted: Tue Feb 24, 2009 3:29 pm Post subject: |
|
|
el problema es de la ruta, que servidor web tienes instalado? easyphp, appserver o lo instalaste manualmente?
cuando utilizo windows, siempre pongo el archivo Smarty.class.php en toda la raiz.
mira, yo tengo un archivo donde defino todos los parametros, y despues simplemente llamo ese archivo, asi
Code: |
<?
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'templates/';
$smarty->compile_dir = 'templates_c/';
$smarty->config_dir = 'configs/';
$smarty->cache_dir = 'cache/';
?>
|
y en los archivos php llamo a ese archivo
require('config-smarty.php'); |
|
Back to top |
|
nlandero Smarty n00b
Joined: 18 Feb 2009 Posts: 2
|
|
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
|