karll
Well-known member
I have an add-on with a template that is calling on PHP code. The PHP code fetches some data out of the database and returns this back in an array of a certain format, which the template is using to populate itself. (Well, something like that )
What are the requirements on the PHP side of things to make this work? I.e. what kind of directory structure do I need? Any classes I need to extend?
Also, I was hoping to do this "properly" in terms of MVC considerations ...
(Background: I have a free add-on which appears to be unsupported, and want to make it work on XF1.2. I'm also hoping to learn something from the exercise.)
What are the requirements on the PHP side of things to make this work? I.e. what kind of directory structure do I need? Any classes I need to extend?
Also, I was hoping to do this "properly" in terms of MVC considerations ...
(Background: I have a free add-on which appears to be unsupported, and want to make it work on XF1.2. I'm also hoping to learn something from the exercise.)