I got two projects running, both written in PHP. Now I want to merge these two projects. The first project is a CMS and on a specific page i will display the contents of the other project / application. I don't want the first project to know about, or get access to, the variables and functions in the other and vice versa. So i just want the CMS, the first project, to receive the contents of output of the other project.
I don't want to make another http-request – using get_file_contents or cURL because of load-time. I find passthru()
and system()
hard to get working, but if that is a possibility, please teach me the way.
I also need to pass some variables from the first project to the other on execution, controller_id
and model_id
.
Thanks in advance!
EDIT: Iframes and load via javascript is not an option in consideration of accessability guidelines.