【发布时间】:2013-01-08 10:03:43
【问题描述】:
您好,我从我的代码中获得了 particular *product* 数组,用于特定 product id ,我想要 strong> 获取 all *products 数组*..... 我的代码是
**<?php
@ob_start();
@session_start();
ini_set('display_errors', 1);
//for order update
include '../../../../app/Mage.php';
Mage::app('default');
echo '<pre>';
if(isset($_REQUEST['productid'])){
$productId = $_REQUEST['productid'];
}else{
$productId = '12402'; // product ID 10 is an actual product, and used here for a test
}
$product = Mage::getModel('catalog/product')->load($productId); //load the product
echo 'product_id '.'=>'.$product->getId().'<br/>';
?>**
【问题讨论】:
标签: php arrays zend-framework magento get