• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/internals/core.write_compiled_resource.php

00001 <?php
00015 function smarty_core_write_compiled_resource($params, &$smarty)
00016 {
00017     if(!@is_writable($smarty->compile_dir)) {
00018         // compile_dir not writable, see if it exists
00019         if(!@is_dir($smarty->compile_dir)) {
00020             $smarty->trigger_error('the $compile_dir \'' . $smarty->compile_dir . '\' does not exist, or is not a directory.', E_USER_ERROR);
00021             return false;
00022         }
00023         $smarty->trigger_error('unable to write to $compile_dir \'' . realpath($smarty->compile_dir) . '\'. Be sure $compile_dir is writable by the web server user.', E_USER_ERROR);
00024         return false;
00025     }
00026 
00027     $_params = array('filename' => $params['compile_path'], 'contents' => $params['compiled_content'], 'create_dirs' => true);
00028     require_once(SMARTY_CORE_DIR . 'core.write_file.php');
00029     smarty_core_write_file($_params, $smarty);
00030     return true;
00031 }
00032 
00033 /* vim: set expandtab: */
00034 
00035 ?>

Generated on Thu Apr 19 2012 17:01:16 for openbiz by  doxygen 1.7.2