예제 #1
0
 /**
  * put content to file
  *
  * @param string $tpl_name
  * @param string $module_name
  * @param string $theme_name
  * @param string $content
  * @return bool
  */
 function saveTemplate($tpl_name, $module_name, $theme_name, $content)
 {
     $path_to_template = SJB_TemplatePathManager::getAbsoluteTemplatePath($theme_name, $module_name, $tpl_name);
     if (!is_dir($path_to_template)) {
         SJB_Filesystem::mkpath(dirname($path_to_template));
     }
     return SJB_Filesystem::file_put_contents($path_to_template, $content);
 }