How to run a php code after save the data in studio genrated edit view

I want to generate a text file after the user submits the edit form which has been generated through CRM studio. I have a folder called custom and inside that, I have my custom module folder then my module name is collection

Welcome to community!

Did you see the documentation?