<?php

require dirname(__DIR__) . './autoload.php';
use Main\controllers\AjaxController as Ajax;
$controller = new Ajax();
$controller->create($_POST);
<?php

require dirname(__DIR__) . './autoload.php';
use Main\controllers\AjaxController as Ajax;
$controller = new Ajax();
$response = $controller->update($_POST['id'], $_POST['value']);
print json_encode(array('response' => $response));
<?php

require dirname(__DIR__) . './autoload.php';
use Main\controllers\AjaxController as Ajax;
$controller = new Ajax();
$stored = $controller->read();
$auctions = $stored->auctions;
if (is_array($auctions)) {
    foreach ($auctions as $auction) {
        ?>

<div class="row auction-wrapper" auction-id="<?php 
        echo $auction['auction_id'];
        ?>
">
     <div class="medium-6  large-4 columns">
         <img class="thumbnail" src="<?php 
        echo $auction['image'];
        ?>
">
     </div>
     <div class="medium-6 large-8 columns">
         <p style="font-size: 0.9rem;"><?php 
        echo $auction['timestamp'];
        ?>
</p>
         <h5><?php 
        echo $auction['title'];
        ?>
</h5>
     </div>