public function Init()
 {
     FDSSmarty::init();
     FDSSmarty::asignar("title", "Codigo Limpio es Dropsize MVCf");
     FDSSmarty::verifica_template(FPATH_TEMPLATES . "/index.tpl");
     FDSSmarty::load_set_template();
 }
예제 #2
0
 * http://www.codigolimpio.com
 * 
 * Wherever third party code has been used, credit has been given in the code's comments.
 *
 * DropsizeMVCf is released under the GPL
 * 
 */
/**
 * Main drop
 * 
 * @package com.dropsizemvcf
 * @author  Isaac Trenado
 * @since   1.0.0
 */
/*
 * Example use Smarty With DropsizeMVCf
 * 
 * Para usar esta clase, es necesario tener instalado Dropsize MVCf Smarty
 * 
 */
define('_DSEXEC', 1);
define('FTITLE', 'DropSize MVCf | Codigolimpio.com');
include "Smarty/libs/Smarty.class.php";
include "FDSSmarty.php";
FDSSmarty::init();
$larMeses = array("01" => "Enero", "02" => "Febrero", "03" => "Marzo", "04" => "Abril", "05" => "Mayo", "06" => "Junio", "07" => "Julio", "08" => "Agosto", "09" => "Septiembre", "10" => "Octubre", "11" => "Noviembre", "12" => "Diciembre");
FDSSmarty::asignar("nombre", "SuperChinazoPoderoso");
FDSSmarty::asignar("meses", $larMeses);
FDSSmarty::verifica_template("templates/index.tpl");
FDSSmarty::load_set_template();
예제 #3
0
 public static function verifica_template($pstTemplate)
 {
     self::$lstPathTemplate = $pstTemplate;
     if (@file_exists($pstTemplate)) {
         self::$lboExiste = true;
     } else {
         self::$lboExiste = false;
     }
 }
예제 #4
0
 public static function enviar($boEnviar = true)
 {
     FDSSmarty::init();
     FDSSmarty::asignar("asunto", is_null(self::$stAsuntoCorto) ? "" : self::$stAsuntoCorto);
     FDSSmarty::asignar("imagen", self::fnGetImagenEncode());
     FDSSmarty::asignar("cuerpo", is_null(self::$stCuerpo) ? "" : self::$stCuerpo);
     FDSSmarty::asignar("extras", is_null(self::$stExtras) ? "" : self::$stExtras);
     FDSSmarty::verifica_template("templates/" . self::$stTplDefautl);
     $stContenidoMail = FDSSmarty::view();
     self::$obMailer->msgHTML($stContenidoMail);
     if ($boEnviar) {
         self::$obMailer->send();
         self::$obMailer->ErrorInfo;
         return true;
     }
 }