/** * Init controller */ protected function _init() { $this->app->jbdoc->noindex(); $this->_orderModel = JBModelOrder::model(); $this->_jbmoney = $this->app->jbmoney; $this->_orderInfo = $this->app->jbcartpayment->getInfoByRequest(); $orderId = $this->_orderInfo->get('id'); if ($orderId > 0) { $this->order = $this->_orderModel->getById($orderId); } else { $this->_error('Variable name with order ID was not found'); } if (empty($this->order)) { $this->_error('Order #' . $orderId . ' not found'); } $application = $this->app->zoo->getApplication(); $this->template = $application->getTemplate(); }