public function confirmAction() { $this->enableLayout(); $this->view->success = false; $newsletter = new Newsletter("person"); // replace "crm" with the class name you have used for your class above (mailing list) if ($newsletter->confirm($this->getParam("token"))) { $this->view->success = true; } }