PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Isaac Trenado Mx   FDSSmarty   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: FDSSmarty
Load and display views using Smarty
Author: By
Last change:
Date: 9 years ago
Size: 2,451 bytes
 

Contents

Class file image Download
<?php

/**
 * DropsizeMVCf - extension of the SlimFramework and others tools
 *
 * @author Isaac Trenado <isaac.trenado@codigolimpio.com>
 * @copyright 2013 Isaac Trenado
 * @link http://dropsize.codigolimpio.com
 * @license http://dropsize.codigolimpio.com/license.txt
 * @version 3.0.1
 * @package DropsizeMVCf
 *
 * DropsizeMVCf - Web publishing software
 * Copyright 2015 by the contributors
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * This program incorporates work covered by the following copyright and
 * permission notices:
 *
 * DropsizeMVCf is (c) 2013, 2015
 * Isaac Trenado - isaac.trenado@codigolimpio.com -
 * 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();