Example #1
0
<?php

ini_set('display_errors', 'Off');
include_once "../../../vendor/autoload.php";
//using relative path
//include_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'AtomicProject'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'); //using absolute path
use App\Bitm\SEIP117637\Tshirt\Tshirt;
//use \App\Bitm\SEIP117637\Utility\Utility;
//use \App\BITM\SEIP1020\Mobile\Model;
//var_dump($_POST);
//die();
$tshirt = new Tshirt($_POST);
$tshirt->store();
Example #2
0
<?php

ini_set('display_errors', 'Off');
include_once "../../../vendor/autoload.php";
use App\Bitm\SEIP117637\Tshirt\Tshirt;
$tshirt = new Tshirt();
$tshirts = $tshirt->index();
?>

<!DOCTYPE html>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            #utility{
                float:right;
                width:60%;
            }
        </style>
    </head>
    <body>
        <h1>Tshirt Title</h1>
        <div><span>Search / Filter </span> 
            <span id="utility">Download as PDF | XL  <a href="create.php">Add New</a></span>
            <select>
                <option>10</option>
                <option>20</option>
                <option>30</option>
                <option>40</option>