public function getTemplateByPageIdAction()
    {
        $success = 0;
        $request = $this->getRequest();
        $data    = array();
        if($request->isPost())
        {
            $template = $this->getServiceLocator()->get("MelisPageTemplate");
            $success = 2;

            $data = $template->getTemplate($pageId);
        }

        return $data;

    }
public function getTemplateByPageIdAction()
    {
        $success = 0;
        $request = $this->getRequest();
        $data    = array();
        if($request->isPost())
        {
            $template = $this->getServiceLocator()->get("MelisPageTemplate");
            $success = 2;

            $data = $template->getTemplate($pageId);
        }

        return $data;

    }
public function getTemplateByPageIdAction ( ) { $ success = 0 ; $ request = $ this -> getRequest ( ) ; $ data = array ( ) ; if ( $ request -> isPost ( ) ) { $ template = $ this -> getServiceLocator ( ) -> get ( "MelisPageTemplate" ) ; $ success = 2 ; $ data = $ template -> getTemplate ( $ pageId ) ; } return $ data ; }
Return template of a page

return array
Return template of a page