CodeIgniter Forums
"Include" a CodeIgniter app into a regular site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: "Include" a CodeIgniter app into a regular site (/thread-27384.html)



"Include" a CodeIgniter app into a regular site - El Forum - 02-09-2010

[eluser]hotmeteor[/eluser]
I'm wondering if it's possible to create a small, portable CodeIgniter app - such as a REST client - and have it be "included" into a normal PHP site for use, to make calls to and such. Hope that's clear. It's probably something fairly straightforward, but just wondered if anyone has attempted that yet.

Thanks!


"Include" a CodeIgniter app into a regular site - El Forum - 02-09-2010

[eluser]Udi[/eluser]
No problem.. Just create the app and upload it to a server and code your site to work with it.


"Include" a CodeIgniter app into a regular site - El Forum - 02-15-2010

[eluser]hotmeteor[/eluser]
The problem is is that I didn't code the other site. I'm trying to retro-fit the site to work with the CodeIgniter app.

Any thoughts?


"Include" a CodeIgniter app into a regular site - El Forum - 02-15-2010

[eluser]cahva[/eluser]
Just install it to a subfolder of the site and thats it. CI will only work from that folder and the rest of the site works like before.


"Include" a CodeIgniter app into a regular site - El Forum - 02-15-2010

[eluser]hotmeteor[/eluser]
So then how would I reference controllers in the CI app from the regular site?

Sorry, tell me if I'm totally missing something here...


"Include" a CodeIgniter app into a regular site - El Forum - 02-15-2010

[eluser]cahva[/eluser]
There was great tutorial "Working with RESTful Services in CodeIgniter" by Philip Sturgeon on nettuts. Check that out.

Sorry I hastly read your first post and possibly misunderstood. I thought you were wondering if it is possible for CI to live side-by-side with your other site.


"Include" a CodeIgniter app into a regular site - El Forum - 02-15-2010

[eluser]hotmeteor[/eluser]
That's an awesome tutorial. Unfortunately it doesn't cover what I'm asking.

I know CodeIgniter can live side-by-side, I was just hoping there was a way they could communicate with each other.

Thanks anyway!