Hi Brenda!
Open file.php and take a look at this :
function delete() {
clearstatcache();
if ($this->exists()) {
return unlink($this->path);
}
return false;
}
In other Cake version I wrote in my controller:
App::import('Core', 'File');
I think File must be a Object. You must creat it and etc before trying
to delete.
On Jan 7, 7:17 pm, Brenda <[email protected]> wrote:
> In another post I saw this link to a File
> component:http://api.cakephp.org/class_file.html
>
> But I don't see it referenced in the cookbook or the main API
> documentation.
>
> Does it still exist? And if so, are there examples on how to use it?
>
> Specifically, I need to delete a file.
>
> thanks,
>
> Brenda
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---