So how do the pathes stay correct. Let me elaborate.
So I have my amfphp structure:
siteroot/amfphp/services/MyClass.php
My CI structure:
siteroot/system/application/
I added the three files:
siteroot/ci_model_remote_close.php
siteroot/ci_model_remote_open.php
siteroot/config_constants.php
then in my remoting class, I include the files as described above:
require_once('../../ci_model_remote_open.php');
require_once(APPPATH."/models/Sections.php");
But that returns me errors. Errors that make sense. Because essentially the pathes get thrown out of whack.The pathes set in constants seem to be relative rather then absolute.
so obviously this dynamically created include one does not work. The remoting class tries to find the Common.php of codeiginiter like so:
siteroot/amfphp/services/system/codeigniter/Common.php
so my question, how do I configure this correctly for my AMFPHP service to find its way to the data supplying model I created in my CI application.
I also tried setting the pathe to application and system folder as abosoulute, but it seems that the string given is not recognized as a path, so CI just doubles up the faulty path…
thanks
V