$group['Group']['id']-$group['Group']['photo_secret'] here is problem...
try this $file = new File(WWW_ROOT ."/img/group-banners/banner/" . $group['Group']['id'] . "-" . $group['Group']['photo_secret'].jpg"); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/12 Chris <chris...@yahoo.com> > no one,...??? > > > On Sunday, November 11, 2012 4:24:25 PM UTC-8, Chris wrote: >> >> >> 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 cake-php@googlegroups.com. > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > -- 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 cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.