/** * Display Thanks page for given Invoice */ protected function displayThanks(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs, Invoice $invoice = null) { if ($invoice !== null) { $request->setParam('id', $invoice->getSecureId('THANKS')); } /// require_once APPLICATION_PATH . '/default/controllers/ThanksController.php'; $request->setActionName('index'); $c = new ThanksController($request, $response, $invokeArgs); return $c->run($request, $response); }