getCustomDirName(); $this->template_dir = array( 'plantillas', 'custom/'.$customDirname.'/plantillas', 'igep/plantillas' ); $this->compile_dir = $configuration->getTemplatesCompilationDir(); $this->plugins_dir = array( 'smarty/plugins', 'custom/'.$customDirname.'/smarty/plugins', SMARTY_DIR.'plugins/' ); $this->config_dir = array( 'igep' => 'igep/lang', 'custom' => 'custom/'.$customDirname.'/lang', '' => 'lang' ); $this->debug_tpl = SMARTY_DIR . 'debug.tpl' ; $this->caching = false; if( !$configuration->getSmartyCompileCheck() ) { $this->compile_check = false; } /* Instanciamos la clase que gestiona los componentes web */ $this->igepPlugin = new IgepPlugin(); }//FIN funcion Smarty_Phrame /** * {@inheritDoc} * @see Smarty_Internal_Data::configLoad($config_file, $sections, $scope) */ public function configLoad( $config_file, $sections = null, $scope = 'global') { // Si no tenemos un array, ejecutamos el método normal // if( !isset($this->config_dir) || !is_array($this->config_dir) ) { return parent::configLoad( $config_file, $sections, $scope ); } // Si tenemos un array, cargamos los ficheros de configuración de igep + custom + app, // en ese orden ya que las variables conservarán el último valor que se les haya dado. // foreach( $this->config_dir as $key => $notUsed ) { $file = (empty($key) ? '' : $key . '_' ) . $config_file; parent::configLoad( $file, $sections, $scope ); } }//FIN funcion configLoad /** * {@inheritDoc} * @see SmartyBC::config_load() * @deprecated */ public function config_load( $file, $section = null, $scope = 'global' ) { $this->ConfigLoad( $file, $section, $scope ); }//FIN funcion config_load } //FIN clase Smarty_Phrame