如何將對象類存儲到PHP會話中,然後將其作爲變量存入下一頁。你能幫忙嗎?如何將對象類存儲到PHP中的會話中?
這裏是我的class.inc.php
class shop {
var $shoeType;
var $color;
public function __construct() {
$shoeTypeService = new ShoeTypeService();
$shoe = $shoeTypeService->getAllShoes();
$this->shoeType = $shoe[20];
}
}
此問題已被詢問並收到綜合答案。檢查出來:http://stackoverflow.com/questions/871858/php-pass-variable-to-next-page/872522#872522 – 2011-04-07 09:14:30