コード例 #1
0
 /**
  * Makes sure that the cache directory exists and is writable
  * @param \Cx\Core\Core\Controller\Cx $cx The contrexx instance
  */
 protected function checkCacheDir($cx)
 {
     if (!is_dir($cx->getWebsiteCachePath())) {
         \Cx\Lib\FileSystem\FileSystem::make_folder($cx->getWebsiteCachePath());
     }
     if (!is_writable($cx->getWebsiteCachePath())) {
         \Cx\Lib\FileSystem\FileSystem::makeWritable($cx->getWebsiteCachePath());
     }
 }