*/ /** * This controller will handle the success-confirmation for the selfregistration of an user * * @package SelfRegistration * @subpackage UserInterface * */ class SelfRegistrationSuccessController extends GalleryController { /** * @see GalleryController::handleRequest */ function handleRequest($form) { global $gallery; $results = array(); $results['delegate']['view'] = 'core.UserAdmin'; $results['delegate']['subView'] = 'register.SelfRegistrationSuccess'; return array(GalleryStatus::success(), $results); } } /** * This view will show a confirmation for the user * * @package SelfRegistration * @subpackage UserInterface */ class SelfRegistrationSuccessView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { global $gallery; $selfregistration = array('email' => 'e@mail.de'); $template->setVariable('selfregistration', $selfregistration); $template->setVariable('controller', 'register.SelfRegistrationSuccess'); return array(GalleryStatus::success(), array('body' => 'modules/register/templates/SelfRegistrationSuccess.tpl')); } } ?>