CodeIgniter Forums
Sharing liibraries with multiple applications - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Sharing liibraries with multiple applications (/showthread.php?tid=2217)



Sharing liibraries with multiple applications - El Forum - 07-23-2007

[eluser]Lord_Jago[/eluser]
Hi,
I am using multiple applications with Code Igniter (with this method).

My CI directory looks like this one :
Code:
# application1
* index.php
* config
* [...]
* views

# application2
* index.php
* config
* [...]
* views

# system
# user_guide


I am looking for a way to share a library between all my applications of Code Igniter.
Is it possible ?


Sharing liibraries with multiple applications - El Forum - 07-23-2007

[eluser]gunter[/eluser]
why don´t you put your library into the system/libraries folder....
then it´s available for all applications


Sharing liibraries with multiple applications - El Forum - 07-23-2007

[eluser]Lord_Jago[/eluser]
I didn't know if it was a good way or not...


Sharing liibraries with multiple applications - El Forum - 07-23-2007

[eluser]Glen Swinfield[/eluser]
It's fine as long as you remember when upgrading that there's some of your code in there.


Sharing liibraries with multiple applications - El Forum - 07-23-2007

[eluser]sophistry[/eluser]
A CI developer named JAAulde created modLoader to fix this problem in a global way. His modified CI code base (based on 1.5.3) allowed you to have a globally shared resource directory that ALL CI installs could share. This is one step beyond the normal "make shared resources work with two standard CI applications."

I was using (am using) the modLoader codebase to support multiple applications that are hosted under different virtual domains.

However, as you'll see at the end of the thread development on this IMPORTANT library has ceased in CI because of some harsh words that were thrown back and forth during the BlueFlame/Kohana fork back in May/June 2007. I believe that JAAulde (as well as several other productive developers) were aggravated with the slow pace of CI development and decided to stop supporting CI in favor of their own fork.

So, if you want a complete implementation and future support, you'll need to check out Kohana.


Sharing liibraries with multiple applications - El Forum - 07-25-2007

[eluser]Phil Sturgeon[/eluser]
Damn, i missed on on e-Drama and posting wars? Lemme see where are they?!