src/Controller/UserController.php
public function retrievePageAction()
    {
        
        $configPath = 'meliscore/datas';
        $melisConfig = $this->getServiceLocator()->get('MelisCoreConfig');
        $cfg = $melisConfig->getItemPerPlatform($configPath);

        $pathAppConfigForm = '/meliscore/forms/meliscore_forgot';
        $melisMelisCoreConfig = $this->serviceLocator->get('MelisCoreConfig');
        $melisLostPass = $this->getServiceLocator()->get('MelisCoreLostPassword');
        $appConfigForm = $melisMelisCoreConfig->getItem($pathAppConfigForm);
        
        $factory = new \Zend\Form\Factory();
        $forgotForm = $factory->createForm($appConfigForm);
        
        $translator = $this->getServiceLocator()->get('translator');
        $this->getServiceLocator()->get('ViewHelperManager')->get('HeadTitle')->set($translator->translate('tr_meliscore_forgot_page_title'));
        
        $view = new ViewModel();
        $view->setVariable('meliscore_forgot', $forgotForm);
        $view->setVariable('formFactory', $factory);
        $view->setVariable('formConfig', $appConfigForm);
        $this->layout()->schemes = $this->getSchemes();

        return $view;
    }
public function retrievePageAction()
    {
        
        $configPath = 'meliscore/datas';
        $melisConfig = $this->getServiceLocator()->get('MelisCoreConfig');
        $cfg = $melisConfig->getItemPerPlatform($configPath);

        $pathAppConfigForm = '/meliscore/forms/meliscore_forgot';
        $melisMelisCoreConfig = $this->serviceLocator->get('MelisCoreConfig');
        $melisLostPass = $this->getServiceLocator()->get('MelisCoreLostPassword');
        $appConfigForm = $melisMelisCoreConfig->getItem($pathAppConfigForm);
        
        $factory = new \Zend\Form\Factory();
        $forgotForm = $factory->createForm($appConfigForm);
        
        $translator = $this->getServiceLocator()->get('translator');
        $this->getServiceLocator()->get('ViewHelperManager')->get('HeadTitle')->set($translator->translate('tr_meliscore_forgot_page_title'));
        
        $view = new ViewModel();
        $view->setVariable('meliscore_forgot', $forgotForm);
        $view->setVariable('formFactory', $factory);
        $view->setVariable('formConfig', $appConfigForm);
        $this->layout()->schemes = $this->getSchemes();

        return $view;
    }
public function retrievePageAction ( ) { $ configPath = 'meliscore/datas' ; $ melisConfig = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreConfig' ) ; $ cfg = $ melisConfig -> getItemPerPlatform ( $ configPath ) ; $ pathAppConfigForm = '/meliscore/forms/meliscore_forgot' ; $ melisMelisCoreConfig = $ this -> serviceLocator -> get ( 'MelisCoreConfig' ) ; $ melisLostPass = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreLostPassword' ) ; $ appConfigForm = $ melisMelisCoreConfig -> getItem ( $ pathAppConfigForm ) ; $ factory = new \ Zend \ Form \ Factory ( ) ; $ forgotForm = $ factory -> createForm ( $ appConfigForm ) ; $ translator = $ this -> getServiceLocator ( ) -> get ( 'translator' ) ; $ this -> getServiceLocator ( ) -> get ( 'ViewHelperManager' ) -> get ( 'HeadTitle' ) -> set ( $ translator -> translate ( 'tr_meliscore_forgot_page_title' ) ) ; $ view = new ViewModel ( ) ; $ view -> setVariable ( 'meliscore_forgot' , $ forgotForm ) ; $ view -> setVariable ( 'formFactory' , $ factory ) ; $ view -> setVariable ( 'formConfig' , $ appConfigForm ) ; $ this -> layout ( ) -> schemes = $ this -> getSchemes ( ) ; return $ view ; }
Renders to the Lost Password form
@return \Zend\View\Model\ViewModel
Renders to the Lost Password form