public function savePageSessionPluginAction()
    {
        $idPage = $this->params()->fromRoute('idPage', $this->params()->fromQuery('idPage', ''));
        $translator = $this->serviceLocator->get('translator');
    
        $postValues = array();
        $request = $this->getRequest();
        if (!empty($idPage) && $request->isPost())
        {
            // Get values posted and set them in form
            $postValues = get_object_vars($request->getPost());
            	
    
            // Send the event and let listeners do their job to catch and format their plugins values
            $eventDatas = array('idPage' => $idPage, 'postValues' => $postValues);
            $this->getEventManager()->trigger('meliscms_page_savesession_plugin_start', $this, $eventDatas);
             
            $result = array(
                'success' => 1,
                'errors' => array()
            );
        }
        else
        {
            $result = array(
                'success' => 0,
                'errors' => array(array('empty' => $translator->translate('tr_meliscms_form_common_errors_Empty datas')))
            );
        }
         
        return new JsonModel($result);
    }
public function savePageSessionPluginAction()
    {
        $idPage = $this->params()->fromRoute('idPage', $this->params()->fromQuery('idPage', ''));
        $translator = $this->serviceLocator->get('translator');
    
        $postValues = array();
        $request = $this->getRequest();
        if (!empty($idPage) && $request->isPost())
        {
            // Get values posted and set them in form
            $postValues = get_object_vars($request->getPost());
            	
    
            // Send the event and let listeners do their job to catch and format their plugins values
            $eventDatas = array('idPage' => $idPage, 'postValues' => $postValues);
            $this->getEventManager()->trigger('meliscms_page_savesession_plugin_start', $this, $eventDatas);
             
            $result = array(
                'success' => 1,
                'errors' => array()
            );
        }
        else
        {
            $result = array(
                'success' => 0,
                'errors' => array(array('empty' => $translator->translate('tr_meliscms_form_common_errors_Empty datas')))
            );
        }
         
        return new JsonModel($result);
    }
public function savePageSessionPluginAction ( ) { $ idPage = $ this -> params ( ) -> fromRoute ( 'idPage' , $ this -> params ( ) -> fromQuery ( 'idPage' , '' ) ) ; $ translator = $ this -> serviceLocator -> get ( 'translator' ) ; $ postValues = array ( ) ; $ request = $ this -> getRequest ( ) ; if ( ! empty ( $ idPage ) && $ request -> isPost ( ) ) { // Get values posted and set them in form $ postValues = get_object_vars ( $ request -> getPost ( ) ) ; // Send the event and let listeners do their job to catch and format their plugins values $ eventDatas = array ( 'idPage' => $ idPage , 'postValues' => $ postValues ) ; $ this -> getEventManager ( ) -> trigger ( 'meliscms_page_savesession_plugin_start' , $ this , $ eventDatas ) ; $ result = array ( 'success' => 1 , 'errors' => array ( ) ) ; } else { $ result = array ( 'success' => 0 , 'errors' => array ( array ( 'empty' => $ translator -> translate ( 'tr_meliscms_form_common_errors_Empty datas' ) ) ) ) ; } return new JsonModel ( $ result ) ; }
Saves datas edited in a page and posted to this function
Save is made in SESSION.

@return \Zend\View\Model\JsonModel
Saves datas edited in a page and posted to this function Save is made in SESSION .