Ejemplo n.º 1
0
 /**
  * Creates a file and puts the text in it; if the file exists, the content is overwritten.
  * @param string $path
  * @param string $text 
  */
 static function CreateWithText($path, $text)
 {
     $dir = Path::Directory($path);
     if (!Folder::Exists($dir)) {
         Folder::Create($dir);
     }
     file_put_contents($path, $text);
 }
Ejemplo n.º 2
0
 /**
  * Gets the server path to the backend upload folder
  * @return string
  */
 static function FilesPath()
 {
     return Path::Combine(Path::Directory(self::BackendPath()), 'files');
 }