We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Using same CodeIgniter folder for both EE and CI projects?

Development and Programming

carvingCode's avatar
carvingCode
380 posts
15 years ago
carvingCode's avatar carvingCode

Now that the ExpressionEngine folder is outside the CodeIgniter folder, is there any reason why we can’t use the one CodeIgniter folder/install for EE and CI projects? What are the things to consider if/when doing this?

TIA

       
Frans Cooijmans's avatar
Frans Cooijmans
36 posts
15 years ago
Frans Cooijmans's avatar Frans Cooijmans

Creating your own application folders next to the EE folder would be great, but how to do it…. (and make it work).

I think CI only allows one application folder?

       
carvingCode's avatar
carvingCode
380 posts
15 years ago
carvingCode's avatar carvingCode
Creating your own application folders next to the EE folder would be great, but how to do it…. (and make it work). I think CI only allows one application folder?

I think I remember reading something recently that indicated in v2 of CI there would be the ability to easily use one CI install for multiple applications. (I believe some have been doing this for awhile, but I never was able to grok the details…)

Since EE has done this, my assumption was that it may be working from CI v2 and this then would open up this possibility.

Hopefully, someone will document this so that average users can make use. (Unlike the spotty docs for running a CI app from within EE which require super-human skills to comprehend. 😉 )

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
15 years ago
Pascal Kriete's avatar Pascal Kriete

If you look at 2.1, we’ve separated out the folders a little bit.

system/codeigniter is the CI core, system/expressionengine are the main EE files, and system/installer is obviously the installer. EE and the installer are discrete CI applications. With the logic of which to use in system/index.php.

Do you want to use parts of EE in your CI app, or are you just looking to reduce the amount of folders that are up there?

       
Frans Cooijmans's avatar
Frans Cooijmans
36 posts
15 years ago
Frans Cooijmans's avatar Frans Cooijmans

So it should be possible to have a folder structure like this:

  • codeiginter
  • expressionengine
  • services (custom XML-RPC CI app)
  • backoffice (custom CI app)

Or am I missing something?

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
15 years ago
Pascal Kriete's avatar Pascal Kriete

Yep, that would work.

Although in theory it doesn’t matter where the individual application folders are, as long as the $system_path variable at the top of each index.php file points to the CI directory.

       
carvingCode's avatar
carvingCode
380 posts
15 years ago
carvingCode's avatar carvingCode
Yep, that would work. Although in theory it doesn’t matter where the individual application folders are, as long as the $system_path variable at the top of each index.php file points to the CI directory.

Which index.php file are you referring to? There’s one inside the ‘system’ folder and one inside the ‘root’ of install?

       
marupilla's avatar
marupilla
3 posts
15 years ago
marupilla's avatar marupilla

I am having similar setup. I have my application folders as below

–CodeIgniter –expressionengine –backoffice (custom CI application)

I have this setup working fine until I am not using any EE related classes. Now, I want to use EE api to submit new channel entry from my custom application. How can I get this work?

EE version: 2.1.3

       
JusTyMe's avatar
JusTyMe
76 posts
15 years ago
JusTyMe's avatar JusTyMe
I am having similar setup. I have my application folders as below —CodeIgniter —expressionengine —backoffice (custom CI application)

Hi Marupilla!

Based on your setup now. I assume that your CI-app is totally independent with EE, Am I right? An advantage of more in control.

My question is. If your CI-app uses login, I am pretty sure that login credentials with your CI-app is the same with the EE login credentials as well which is exp_members table if I am not mistaken, just something like that. I wonder how can you maintain a global user session between EE and your CI-app.

cheers, Jay

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.