public function __construct($Etiqueta = "", $Icono = "")
 {
     XTFactory::app()->Title = $Etiqueta;
     $this->c_etiqueta = $Etiqueta;
     if ($Icono == "") {
         $Icono = "generic";
     }
     $this->c_icon = $Icono;
 }
Пример #2
0
 static function LoadHelperLib($NombreLib)
 {
     $XT_Tipo = XTFactory::app()->apptype;
     $XT_Nombre = XTFactory::app()->controller->Id;
     $appFolder = XTFactory::app()->appname;
     if ($XT_Tipo == "app") {
         $filehelper = "app/" . $appFolder . "/helpers/{$NombreLib}Helper.php";
     } else {
         $filehelper = "modulos/" . $appFolder . "/helpers/{$NombreLib}Helper.php";
     }
     if (is_file($filehelper)) {
         require_once $filehelper;
     } else {
         print "No existe el helper: {$NombreLib} -> Path:  {$filehelper}";
     }
 }
Пример #3
0
          </h1>
          <ol class="breadcrumb">
            <li class="<?php 
echo XTFactory::app()->controller->Id == "index" && (XTFactory::app()->controller->action->Id == "index" || XTFactory::app()->controller->action->Id == "") ? 'active' : '';
?>
"><a href="index.php"><i class="fa fa-dashboard"></i> Inicio</a></li>
            <?php 
if (XTFactory::app()->controller->Id != "index") {
    if (XTFactory::app()->controller->action->Id != "index") {
        echo "<li><a href='#'>" . ucfirst(XTFactory::app()->controller->Id) . "</a></li>";
        echo "<li class='active'><a href='#'>" . ucfirst(XTFactory::app()->controller->action->Id) . "</a></li>";
    } else {
        echo "<li class='active'><a href='#'>" . ucfirst(XTFactory::app()->controller->Id) . "</a></li>";
    }
} elseif (XTFactory::app()->controller->action->Id != "index") {
    echo "<li class='active'><a href='#'>" . ucfirst(XTFactory::app()->controller->action->Id) . "</a></li>";
}
?>
            
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          
          <?php 
echo $systemsalida;
?>

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
Пример #4
0
<?
ini_set("session.gc_maxlifetime", '60');
error_reporting(E_ALL & ~(E_STRICT|E_NOTICE|E_WARNING));
define("_XTEXEC","Iniciado");
require 'librerias/core/XTCore.php';
XTFactory::app()->start();
?>
function XT_URLBuilder($parametros = array())
{
    $url = $parametros["url"];
    $app = $parametros["app"];
    $xtcom = $parametros["xtcom"];
    $accion = $parametros["accion"];
    $params = $parametros["params"];
    $url = $url == "" ? "index.php" : $url;
    $xtcom = $xtcom == "" ? XTFactory::app()->controller->Id : $xtcom;
    $accion = $accion == "" ? XTFactory::app()->controller->action->Id : $accion;
    if (XTConfig::singleton()->get('XT_C_URL') == 'Y') {
        return XTSITE_PATH . "{$url}/{$xtcom}/{$accion}?{$params}";
    }
    return XTSITE_PATH . "{$url}?xtcom={$xtcom}&accion={$accion}&{$params}";
}
 public function actionMvc()
 {
     XTFactory::app()->Title = 'Introducción a eXTend Framework PHP';
     XTFactory::app()->Subtitle = 'Modelo Vista Controlador';
     $this->view->show("mvc");
 }