I wish to know one more thing.
I would like to run some script when an image is deleted, so I found function called "
deleteFilesAction()" In the file "
IndexController.php".
I put my stuff right after:
if ($file && $file->delete()) {
$deleted++;
My stuff is:
$dom = new DOMDocument('1.0', 'UTF-8');
$dom->load("new_files.xml");
$xpath = new DOMXpath($dom);
$items = $xpath->query("/images/image[@image_name='$filename']");
foreach ($items as $item)
{
$item->parentNode->removeChild($item);
}
$dom->save("new_files.xml");
Everything seems to be ok, but there is something more to edit in the code, because my code works only for "multi delete" in admin panel.
I mean, if I press "red cross" button on image thumbnail then my stuff not works. when I mark the thumbnail (green bird), and press "Delete" button on the bar above thumbnails, then I get my stuff to works...
What do you think? I'll be glad if you again waste few minutes of your time for answer my question

.