Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/12/2013, 12:54
Avatar de jonni09lo
jonni09lo
Colaborador
 
Fecha de Ingreso: septiembre-2011
Ubicación: Estigia
Mensajes: 1.471
Antigüedad: 12 años, 7 meses
Puntos: 397
Respuesta: Smarty Clase constructor

Pues si esa es la "solución" debería ir algo así:

Código PHP:
Ver original
  1. include_once SMARTY_BASEFILE;
  2.  
  3. class Plantilla extends Smarty {
  4.  
  5.     function Plantilla() {
  6.         parent::__construct();
  7.     }
  8.    
  9.     function Plantilla() {
  10.  
  11.         $this->template_dir = APP_BASEDIR .'/plantillas/templates/';
  12.         $this->compile_dir  = APP_BASEDIR .'/plantillas/templates_c/';
  13.         $this->config_dir   = APP_BASEDIR .'/plantillas/configs/';
  14.         $this->cache_dir    = APP_BASEDIR .'/plantillas/cache/';
  15.    }  
  16. }

Saludos
__________________
Haz preguntas inteligentes-Como ser Hacker
No hacer preguntas por mensaje privado. No sólo no es inteligente sino que es egoísta.