Exemplo n.º 1
0
 function page_image_description()
 {
     $return = array();
     require_once DIR_FS_CATALOG . $this->dir . 'classes/zen_smartphone_model.php';
     $model = new zen_smartphone_model();
     $product = $model->getProductInfo($_GET['products_id']);
     //print_R($product);
     return array('product' => $product);
 }
Exemplo n.º 2
0
<?php

require_once DIR_WS_ADDON_MODULES . 'zen_smartphone/classes/zen_smartphone_model.php';
require_once DIR_WS_ADDON_MODULES . 'zen_smartphone/configure.php';
$smartphone_model = new zen_smartphone_model();
$smartphone_model->init($_SERVER['HTTP_USER_AGENT'], $db);