All entry points running at once?

Hi all,
I’ve made one entry point. I’m now trying to make a second one, with a new name and in a new file, and it works just as well as my first one. Oddly, though, when I go to entry point 2, I see its output along with the output of entry point 1. I also found that there’s a file where, it seems, all the code from all the entry points gets concatenated.

I thought each entry point was its own file, with a bit of validation code at the top along with an array of entry point options. After that boiler plate code, I could write whatever PHP I wanted to. I’m confused, then as to why (A) all my points seem to run at once and (B) I can’t write HTML without echoing it. In normal PHP, I could put HTML and PHP together, using the usual tags to separate PHP, but because everything is put into that concatenated file, I have to echo all the HTML I write. This isn’t the end of the world, but it’s an annoying side effect of the main thing I don’t understand, which is why SC is running all my points at once from this single file. But at least this explains why I need to do a QRR before any entry point changes will appear–that file needs to be rebuilt, since SC isn’t loading my own files.

Can you share your entry-point definition, and a bit of your file where you define the actual function?

I think I may have solved it. I apparently misunderstood what I read, so had placed all my code in custom/application/Ext/EntryPointRegistry/myEP.php. I’ve now broken it out so my entry point code remains there, but the actual myEP.php file in in the custom directory. This seems to have taken care of the problem. Sorry for the confusion.