Exemplo n.º 1
0
Arquivo: vel.php Projeto: gokuale/vel
 /**
  * constructor (registers additional tasks to methods)
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Register Extra tasks
     //	$this->registerTask( 'add'  , 	'edit' );
 }
  </head>
  <body>
  <center>
    <header id="encabezado">
      <img src="../img/Banner.png" alt=""/>
    </header>
    <section id="contenido">

      <article class="texto">  
        <?php 
include_once '../librerias/DataBaseClass.php';
include_once 'controller/controllerClass.php';
include_once 'view/viewClass.php';
include_once 'model/modelClass.php';
// inicializamos el controlador
$controller = new controllerClass();
// verifico que exista $_GET['action']
if (isset($_GET['action'])) {
    switch ($_GET['action']) {
        case 'create':
            $controller->create();
            break;
        case 'update':
            $controller->update();
            break;
        case 'delete':
            $controller->delete();
            break;
        case 'read':
            $controller->index();
            break;
<?php

include_once '../../librerias/dataBaseClass.php';
include_once 'controller/controllerClass.php';
include_once 'view/viewClass.php';
include_once 'model/modelClass.php';
// inicializamos el controlador
$controller = new controllerClass();
$controller->index();