Cita:
Iniciado por ferbux
Hola,
Creo que el problema va por el lado del archivo config.inc de php ya que ahi tienes que definir la ruta de tus plantillas de smarty, por que eso que te muestra es por que no reconoce tus plantillas.
Saludos!!!
config.inc.php
Código:
....
....
....
define('SMARTY_DIR',c:ruta/includes/smarty/libs/');
include_once(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$app["module"] = basename(getcwd());
$smarty->assign("module",$app["module"]);
$smarty->template_dir = 'ruta/templates/'.$app["module"];
$smarty->compile_dir = 'ruta/templates_c/';
$smarty->config_dir = 'ruta/configs/';
$smarty->assign("includes","../../includes/");
....
....
....
buenas y gracias por responder... mi config.php tengo esto y antes con xampp me funcionava ..... ahora nose si tengo que añadir otra cosa.. tengo 2 includes en el index.php que no tenian lo de <?php sino que tenian solo <? ahora solo me salen estos errores;
mi config
Código PHP:
require '../libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = true;
errores
Código PHP:
Warning: include(templates_c%%A8^A8F^A8F8FD51%%index.tpl.php) [function.include]: failed to open stream: No such file or directory in C:wampwwwlibsSmarty.class.php on line 1258
Warning: include() [function.include]: Failed opening 'templates_c\%%A8^A8F^A8F8FD51%%index.tpl.php' for inclusion (include_path='C:\wamp\www\smarty\libs') in C:wampwwwlibsSmarty.class.php on line 1258
Warning: include(templates_c%%64^643^643B9C04%%debug.tpl.php) [function.include]: failed to open stream: No such file or directory in C:wampwwwlibsSmarty.class.php on line 1925
Warning: include() [function.include]: Failed opening 'templates_c\%%64^643^643B9C04%%debug.tpl.php' for inclusion (include_path='C:\wamp\www\smarty\libs') in C:wampwwwlibsSmarty.class.php on line 1925