PHP Classes

File: app/pages/

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Minimalist PHP Sales Site   app/pages/   Download  
File: app/pages/
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Minimalist PHP Sales Site
Implement a sales site from configuration files
Author: By
Last change:
Date: 4 months ago
Size: 492 bytes


Class file image Download

use PHenry\App\Kernel\Helper\Template;

'productImage' => ',cup',
'productName' => 'Red Cup ?',
'productDescription' => '?A perfect red cup (without coffee).',
'productPrice' => '$5',
'purchaseUrl' => '',

Template::output('product/index', 'Product', PRODUCT_DETAILS);
/* or */
// echo Template::render('product/index', 'Product', PRODUCT_DETAILS);