It looks like you're new here. If you want to get involved, click one of these buttons!
public function on_before_delete($where)
{
$id = $this->_determine_key_field_value($where);
$data = $this->find_by_key($id);
$files[] = assets_server_path('projects/'.$data->image, 'images');
foreach($files as $file)
{
if (file_exists($file))
{
@unlink($file);
}
}
}
$id = $this->_determine_key_field_value(array('id'=>$where['posts.id']));
Comments
https://github.com/daylightstudio/FUEL-CMS/commit/a20ecbe8890c4c917687180ff6cb4e631084d4d5