Can you save several modal windows in a separate file?

0

Sorry for the inconvenience. Until recently I was implementing several modal Bootstrap windows on my website. The problem is (I do not know if it is) that each html code is inserted in the same page where these are called by buttons. I have around of 4 modal windows for different things.

Then I came up with the idea of whether all the modal windows could be implemented in a separate file and make an include ("") with php in the pages that I want to be available (the manners).

Is that a good idea?

    
asked by luis 20.01.2017 в 22:22
source

1 answer

1

In my little experience, I consider that what you want if you can, besides that it helps you to have your code more organized in case another person reviews it in the future, but that decision is already up to you and if it is good idea to implement it in that way as you wish.

    
answered by 20.01.2017 / 23:17
source