Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Include problemas....

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Spanish
View previous topic :: View next topic  
Author Message
jribarra
Smarty n00b


Joined: 09 Apr 2009
Posts: 1

PostPosted: Thu Apr 09, 2009 3:52 am    Post subject: Include problemas.... Reply with quote

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
View user's profile Send private message
mrtinez
Smarty Rookie


Joined: 31 Jan 2005
Posts: 26
Location: Mexico

PostPosted: Mon Apr 20, 2009 1:11 pm    Post subject: Include problemas.... Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: Spanish 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