Topic: delete two files with delete button
I am creating a custom CMS using this. I have a data folder which stores all of the webpage HTML. when a client creates a new page it will also create an empty data file when the page is viewed, which is called the same as the file created. so index.php will also have a data file called index.php.
every level in the folder structure will have a data folder.
so what I am trying to do is, change it so when it deletes a file it will also delete the data file applied in that structure.
any help would be great.