/** * @return obj */ public function show() { if (!isset(self::$_instance)) { $show = __CLASS__; self::$_instance = new $show(); } return self::$_instance; }
public function trdetailAction() { $orderId = $this->_request->getParam('orderId'); $tblOrder = new App_Model_Db_Table_Order(); $tblOrderDetail = new App_Model_Db_Table_OrderDetail(); $tblOrderHistory = new App_Model_Db_Table_OrderHistory(); //$tblOrderPaypalHistory = new Kutu_Core_Orm_Table_PaypalPaymentHistory(); $tblOrderNsiapay = new App_Model_Db_Table_Nsiapay(); $rowset = $tblOrder->fetchAll("orderID ='" . $orderId . "'"); $rowsetDetail = $tblOrderDetail->fetchAll("orderId='" . $orderId . "'"); $rowsetHistory = App_Model_Show_OrderHistory::show()->getHistory($orderId); //$rowsetPaypalHistory = $tblOrderPaypalHistory->fetchAll($tblOrderPaypalHistory->select()->where("orderId='".$orderId."'")); $rowsetNsiapay = $tblOrderNsiapay->fetchAll("orderID ='" . $orderId . "'"); $this->view->listOrder = $rowset; $this->view->listOrderDetail = $rowsetDetail; $this->view->rowsetHistory = $rowsetHistory; //$this->view->rowsetPaypalHistory = $rowsetPaypalHistory; $this->view->rowsetNsiapay = $rowsetNsiapay; }