Workflow for developing PHP include modules

I am developing modules (independent pages with certain basic functionalities) that I would like to include in a main page with PHP include.

When I design the modules as independent pages, I am adding the appconnect + specific serverconnect elements to design and test.

When I include these modules in the main page with an PHP include, the appconnect etc. get loaded twice.

One solution would be to delete the appconnect and server connects elements from the module page and paste them in the main page.
However, if I want to update or modify the module page, I need to copy these elements back in to see, edit and test the module.

Is there a better way to do this?

Community Page
Last updated: