<?php include '../class/requestClass.php'; include '../class/securityClass.php'; include '../class/routingClass.php'; use barla\request\requestClass as request; use barla\security\securityClass as security; use barla\routing\routingClass as routing; $user = request::getParamPost('inputUser'); $pass = request::getParamPost('inputPassword'); if (security::verifyUserAndPassword($user, $pass) === true) { routing::redirect('../mainMenu.php'); } else { routing::redirect('../index.php?user=false'); }
public function printBill() { // cuando no separo el espacio de nombre debo colocar // todo el espacio de nombre donde la clase ha sido definida \barla\routing\routingClass::redirect('../bill.php'); }
<?php session_start(); include '../class/requestClass.php'; include '../class/routingClass.php'; include '../class/productClass.php'; include '../class/jabonClass.php'; include '../class/billClass.php'; use barla\request\requestClass as request; use barla\routing\routingClass as routing; use barla\bill\billClass as bill; $quantity = request::getParamPost('inputCantidadJabon'); $bill = new bill(); if ($bill->setJabon($quantity) === true) { routing::redirect('../sell.php'); } else { routing::redirect('../sell.php?jabon=false'); }
<?php session_start(); include 'class/routingClass.php'; include 'class/productClass.php'; include 'class/jabonClass.php'; include 'class/tonicoClass.php'; include 'class/billClass.php'; use barla\bill\billClass as bill; use barla\routing\routingClass as routing; $bill = new bill(); // ($bill->getShirt() === 0 and $bill->getPants() === 0) ? routing::redirect('mainMenu.php') : null // if ($bill->getShirt() === 0 and $bill->getPants() === 0) routing::redirect('mainMenu.php') if ($bill->getTonico() === 0 and $bill->getJabon() === 0) { routing::redirect('sell.php'); } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BARLA - Sistema de ventas</title> <?php include 'html/head.php'; ?> </head> <body> <div class="container container-fluid"> <div class="well" id="wellIdentificacion"> <div class="page-header"> <h1><i class="mdi-action-assignment-ind"></i> Datos del cliente</h1>
<?php session_start(); include '../class/requestClass.php'; include '../class/routingClass.php'; include '../class/billClass.php'; use barla\request\requestClass as request; use barla\routing\routingClass as routing; use barla\bill\billClass as bill; $clientId = request::getParamPost('inputId'); $clientName = request::getParamPost('inputName'); $bill = new bill($clientName, $clientId); routing::redirect('processBill.php');
<?php session_start(); include '../class/requestClass.php'; include '../class/routingClass.php'; include '../class/productClass.php'; include '../class/tonicoClass.php'; include '../class/billClass.php'; use barla\request\requestClass as request; use barla\routing\routingClass as routing; use barla\bill\billClass as bill; $quantity = request::getParamPost('inputCantidadTonico'); $bill = new bill(); if ($bill->setTonico($quantity) === true) { routing::redirect('../sell.php'); } else { routing::redirect('../sell.php?tonico=false'); }