Welcome Guest, Not a member yet? Register   Sign In
how to Ignite others codes with mine?! (CI codes)
#1

[eluser]Shadi[/eluser]
Hello,

I'm currently developing a news script, and one of the requirement is to enable including of the "last 10 posts" remotely into another script outside CI framework ... how I could accomplish something like that?

I remember seeing a topic about encapsulating CI into a file or something which might help?

any suggestions?
#2

[eluser]Skulls[/eluser]
the easiest way is a rss feed ....
#3

[eluser]marcoss[/eluser]
Depending on the other site posibilities you could also use XML, REST, SOAP, etc. But for syndication, as Skulls suggested, RSS would be the best choise.
#4

[eluser]Shadi[/eluser]
what about using CodeIngiter resources from another script?

I could do that by including the index.php from a remote file but i've to set the $_SERVER['query_string'] to the controller which i want to load..

example
Code:
$_SERVER['QUERY_STRING'] = '/news/details/1';
include('index.php');
$CI = & get_instance(); // << now i've the CI object.
print_r($CI);

but maybe there is a better way to do it?

thanks for replies,




Theme © iAndrew 2016 - Forum software by © MyBB