Welcome Guest, Not a member yet? Register   Sign In
Application extends application which extends ci
#1

[eluser]mayconfsbrito[/eluser]
Hello friends!

I'm using ci in the following structure:

------------------------&gt; CI project (contains just the system directory) <----------
| |
| |
FW project (same thing of application directory) SI project (same thing of application directory)

But I have several projects equals to SI project. And the FW project is our custom framework, then SI projects needs extend FW project which in your turn extends CI project, being as follow:

CI project (contains just the system directory)
|
|
FW project (same thing of application directory)
|
|
SI project (same thing of application directory)

I need to build is because the FW project contains MY_Loader and several Core classes that should be used for SI projects.

I really need to help of you.

Thanks.

#2

[eluser]mayconfsbrito[/eluser]
To better illustrate my problem I create a link between the directory core of the FWproject to directory of the SIproject, then it works, but is a bad workaround.

I try to insert the following code in autoload.php on the SIproject, but don't works.
Code:
$autoload['core'] = array(DIR_FWPROJECT .  "core/MY_Loader.php");
#3

[eluser]mayconfsbrito[/eluser]
The solution was:

I created a file that has the same name of the file witch I have extends and simply insert a include_once. Like so:

FWPROJECT
|
|_core
|_MY_Loader

SIPROJECT
|
|_core
|_MY_Loader

In MY_Loader of the SIPROJECT I have:
include_once(DIR_FWSIBE . "core/MY_Loader.php");

And in MY_Loader of the FWPROJECT I have the implemetion of the class MY_Loader.

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB