예제 #1
0
 /**
  * Function displays the details of the products available 
  * 
  * 
  * @return array
  */
 function productDetail()
 {
     include_once 'classes/Core/CProductDetail.php';
     include_once 'classes/Display/DProductDetail.php';
     include 'classes/Core/CAdminHome.php';
     $output['username'] = Core_CAdminHome::userName();
     $output['currentDate'] = date('l, M d, Y H:i:s');
     $output['username'] = Core_CAdminHome::userName();
     $default = new Core_CProductDetail();
     $output['product'] = $default->productDetail();
     $output['attributes'] = $default->attributeList();
     $output['rating'] = $default->reviewRating();
     $output['review'] = $default->reviewCount();
     $output['relprod'] = $default->relatedProducts();
     Bin_Template::createTemplate('productdetail.html', $output);
 }