<?php
 $R['idTemplate']=(int)$R['idTemplate']; if($R['idTemplate']){ $templateInterface = new \App\GenDocument\Storage\General(); $documentData = $templateInterface->loadTemplate($R['idTemplate']); }else{ $OK = false; $showMessage['error'] = $_LANG['DTM']['tpl']['errors']['missingIdInReguest']; } 