public function lastedtranxAction() { $array_of_params = $this->_request->getParams(); $this->view->param = $array_of_params; if (isset($array_of_params['username']) && $array_of_params['username'] != '') { try { $tranxService = new Tranx(); if (isset($array_of_params['tranxid']) && ($array_of_params['action'] = 'del')) { $tranxService->removeTransaction($this->getIDByName($array_of_params['username']), $array_of_params['tranxid']); } $tranxs = $tranxService->getLatestTx($this->getUserFromParam($array_of_params)); $this->view->tranxs = $tranxs; } catch (Exception $e) { var_dump($e); die; } } $this->view->frmSearch = $this->view->render('index/app_lastedTranx.phtml'); $this->view->container = $this->view->render('index/index.phtml'); }
public function indexAction() { try { $tranx = new Tranx(); $txs = $tranx->getLatestTx($this->userID); $appInfo = new AppInfor(); $registedApps = $appInfo->getAllAppInfo(); } catch (Exception $e) { } $this->view->txs = $txs; $this->view->registedApps = $registedApps; $this->view->userID = $this->userID; $this->render('latesttx'); }