setFirstName($rd->getParameter('first_name')); $application->setLastName($rd->getParameter('last_name')); $application->setEmail($rd->getParameter('email')); $application->setPhone($rd->getParameter('phone')); $application->setYearOfStudy($rd->getParameter('year')); $application->setOtherComments($rd->getParameter('comments')); $application->setTimestamp(time()); $application->save(); return 'Success'; } public function handleWriteError(AgaviRequestDataHolder $rd) { return 'Input'; } /** * This method returns the View name in case the Action doesn't serve the * current Request method. * * !!!!!!!!!! DO NOT PUT ANY LOGIC INTO THIS METHOD !!!!!!!!!! * * @return mixed - A string containing the view name associated with this * action, or... * - An array with two indices: * 0. The parent module of the view that will be executed. * 1. The view that will be executed. * */ public function getDefaultViewName() { return 'Input'; } } ?>