hi guys,... can someone help me please,...
I got image files in server:
/img/group-banners/original/39-afgmeq4hbsq7fmx2fywc.jpg
/img/group-banners/banner/39-afgmeq4hbsq7fmx2fywc.jpg
where "39" is a asigned as group id as unique id for a file while its
uploading, and "afgmeq4hbsq7fmx2fywc" is set to
$group['Group']['photo_secret']
and I want to delete these files from controller on delete function,...
when I'm deleting group
if($this->Group->delete($group['Group']['id']))
{
$file = new File(WWW_ROOT
."/img/group-banners/original/$group['Group']['id']-$group['Group']['photo_secret'].jpg");
$file = new File(WWW_ROOT
."/img/group-banners/banner/$group['Group']['id']-$group['Group']['photo_secret'].jpg");
if($file->exists())
$file->delete();
I'm getting an error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING
how can I do this,...?
thanks in advance
chris
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.