If you are using sf 1.3 or. 1.4, then you have postDelete hook in your propel
sent via htc magic On Dec 24, 2009 4:48 AM, "Serkan Koyuncu" <[email protected]> wrote: Hi, If you're using Doctrine, you can create public function postDelete($event) { @unlink(sfConfig::get('sf_upload_dir').'/immobili/original/'.$this->fotoPrincipale); @unlink(sfConfig::get('sf_upload_dir').'/immobili/big/'.$this->fotoPrincipale); } in your model file. If you're using Propel, you can extend delete method of your model file or create another behaviour. Thanks. 2009/12/23 ilcaduceo <[email protected]>: > Hi all, I've a simple form with sfFormWidgetInputFileEditable for > simple upload of photos: > > $... -- You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en.
