assign('url', $this->getUrl($this->order)); return $smarty; } public function executeOrderListTableHead() { return new stSmarty('appOrderAgainFrontend'); } public function executeOrderListBodyRow() { $smarty = new stSmarty('appOrderAgainFrontend'); $smarty->assign('url', $this->getUrl($this->order['instance'])); return $smarty; } protected function getUrl(Order $order) { return $this->getController()->genUrl('@appOrderAgainFrontend?&order_id='. $order->getId().'&order_hash='.$order->getHashCode()); } }