<? $pageTitle = 'Home'; ?>
<?
require 'common/header.php';
$products = new Table('products');
$allProducts = $products->findAll();
?>
<?php foreach($allProducts as $product) : ?>
    <div <?php echo $products->getLiveEditAttr($product['id']); ?>>
        <h3><?php echo $product['title']; ?></h3>
        <?php echo $product['brief']; ?>
    </div>
<?php endforeach; ?>


<? require 'common/footer.php';?>

