method changeExt documentation in bbn\Ide\Directories
Changes the extension to a file.
function($ext, $file)
{
!empty($file) &&
file_exists($file)
){
$pi = X::pathinfo($file);
$new = $pi['dirname'].'/'.$pi['filename'].'.'.$ext;
bbn\File\Dir::move($file, $new, true);
return [
'file' => $new,
'file_url' => $this->realToUrl($new)
];
}
$this->error("Error.");
}
Changes the extension to a file. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions