Welcome Guest, Not a member yet? Register   Sign In
Global Loader Class
#1

[eluser]whobutsb[/eluser]
Hello All,
Currently I have been managing multiple CI projects on a server, and a lot of times I find myself rewriting the same helpers, models, and libraries, over and over. I would like to simplify my coding and create a "global" folder to house my globally used files. I"m struggling to figure out how I would setup a global libraries folder.

Here is what my current development directory structure:
Code:
/www
    /CI_Project1
    /CI_Project2
    /CI_Project3
    /Global     //Planned Structure for the Global Folder
        /Libraries
            /GoogleAnalytics_lib.php
            /Businessunit_lib.php
        /Models
            /Businessunit_model.php
        /Helpers
            /Businessunit_helper.php

My plan would be to extend the CI_Loader class or create my own "GlobalLoader" library so that I could call the global library, model, and helper files from my CI projects. But I'm struggling with loading the classes so that they will work with either CI global object of $this or $CI. Has anyone tried writing something like this or are there other forum posts that would have hints on going about doing this?

Thank you for the help!


Messages In This Thread
Global Loader Class - by El Forum - 08-10-2010, 09:32 AM
Global Loader Class - by El Forum - 08-10-2010, 10:17 AM
Global Loader Class - by El Forum - 08-10-2010, 10:25 AM
Global Loader Class - by El Forum - 08-10-2010, 12:39 PM
Global Loader Class - by El Forum - 08-10-2010, 12:52 PM
Global Loader Class - by El Forum - 08-10-2010, 12:58 PM
Global Loader Class - by El Forum - 08-10-2010, 01:07 PM
Global Loader Class - by El Forum - 08-10-2010, 01:08 PM
Global Loader Class - by El Forum - 08-10-2010, 01:11 PM
Global Loader Class - by El Forum - 08-10-2010, 01:23 PM
Global Loader Class - by El Forum - 08-10-2010, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB