|
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 |
jribarra Smarty n00b
Joined: 09 Apr 2009 Posts: 1
|
Posted: Thu Apr 09, 2009 3:52 am Post subject: Include problemas.... |
|
|
hola que tal, estoy tratando de incluir dos archivos con include, pero me muestra error de localizacion.
codigo:
{include file = 'mueble/skin/templates/left_menu.tpl'}
El archivo se encuentra en "www/mueble/skin/templates/", pero marca el siguiente error: Warning: Smarty error: unable to read resource: "mueble/skin/templates/header.tpl" in C:\AppServ\www\mueble\Smarty\Smarty.class.php on line 1092
El codigo funciona sin problemas para referir imagenes. Como puedo modificar el codigo? |
|
Back to top |
|
mrtinez Smarty Rookie
Joined: 31 Jan 2005 Posts: 26 Location: Mexico
|
Posted: Mon Apr 20, 2009 1:11 pm Post subject: Include problemas.... |
|
|
Hola, puedes intentar incluyendo el path de la localizacion de tu template en el include_path de smarty...
define(SMARTY_DIR,"/home/httpd/includes/Smarty/libs/");
ini_set("include_path","/home/httpd/include/files:.:/home/httpd/includes/Smarty/libs:/usr/local/lib/php:/home/httpd/www");
o definir el template_dir
define("SMARTY_DIR","/u/httpd/includes/Smarty/libs/");
define("TEMPLATE_DIR","/u/httpd/templates/");
ini_set("include_path",ini_get("include_path").":".SMARTY_DIR);
espero te sirva... |
|
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
|