private function createSitePageTemplate($tplId, $siteId, $siteName, $tempName, $controler, $action, $platformId)
	{
	    $cmsTemplateTbl = $this->getServiceLocator()->get('MelisEngineTableTemplate');
	    $cmsPlatformTable = $this->getServiceLocator()->get('MelisEngineTablePlatformIds');
	    
	    // Template data
	    $template = array(
	        'tpl_id' => $tplId,
	        'tpl_site_id' => $siteId,
	        'tpl_name' => $tempName,
	        'tpl_type' => 'ZF2',
	        'tpl_zf2_website_folder' => $siteName,
	        'tpl_zf2_layout' => 'defaultLayout',
	        'tpl_zf2_controller' => $controler,
	        'tpl_zf2_action' => $action,
	        'tpl_php_path' => '',
	        'tpl_creation_date' => date('Y-m-d H:i:s'),
	    );
	    
	    // Saving template
	    $templateId = $cmsTemplateTbl->save($template);
	    
	    // Updating platform ids after site pages creation
	    $platform = array(
	        'pids_tpl_id_current' => ++$tplId
	    );
	    $cmsPlatformTable->save($platform, $platformId);
	    
	    return $templateId;
	}
private function createSitePageTemplate($tplId, $siteId, $siteName, $tempName, $controler, $action, $platformId)
	{
	    $cmsTemplateTbl = $this->getServiceLocator()->get('MelisEngineTableTemplate');
	    $cmsPlatformTable = $this->getServiceLocator()->get('MelisEngineTablePlatformIds');
	    
	    // Template data
	    $template = array(
	        'tpl_id' => $tplId,
	        'tpl_site_id' => $siteId,
	        'tpl_name' => $tempName,
	        'tpl_type' => 'ZF2',
	        'tpl_zf2_website_folder' => $siteName,
	        'tpl_zf2_layout' => 'defaultLayout',
	        'tpl_zf2_controller' => $controler,
	        'tpl_zf2_action' => $action,
	        'tpl_php_path' => '',
	        'tpl_creation_date' => date('Y-m-d H:i:s'),
	    );
	    
	    // Saving template
	    $templateId = $cmsTemplateTbl->save($template);
	    
	    // Updating platform ids after site pages creation
	    $platform = array(
	        'pids_tpl_id_current' => ++$tplId
	    );
	    $cmsPlatformTable->save($platform, $platformId);
	    
	    return $templateId;
	}
private function createSitePageTemplate ( $ tplId , $ siteId , $ siteName , $ tempName , $ controler , $ action , $ platformId ) { $ cmsTemplateTbl = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTableTemplate' ) ; $ cmsPlatformTable = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTablePlatformIds' ) ; // Template data $ template = array ( 'tpl_id' => $ tplId , 'tpl_site_id' => $ siteId , 'tpl_name' => $ tempName , 'tpl_type' => 'ZF2' , 'tpl_zf2_website_folder' => $ siteName , 'tpl_zf2_layout' => 'defaultLayout' , 'tpl_zf2_controller' => $ controler , 'tpl_zf2_action' => $ action , 'tpl_php_path' => '' , 'tpl_creation_date' => date ( 'Y-m-d H:i:s' ) , ) ; // Saving template $ templateId = $ cmsTemplateTbl -> save ( $ template ) ; // Updating platform ids after site pages creation $ platform = array ( 'pids_tpl_id_current' => ++ $ tplId ) ; $ cmsPlatformTable -> save ( $ platform , $ platformId ) ; return $ templateId ; }
This method creating Site page template

@param Int $tplId
@param Int $siteId
@param String $siteName
@param String $tempName
@param String $controler
@param String $action
@param Int $platformId
@return Int
This method creating Site page template