1

i'm finishing an EE website that contains a codeigniter intranet part. two setups, two databases. runs smooth. now i want to include some codeigniter php files into EE. was thinking to do so via php include, but now it seems that including codeigniter doesn't work for some reason.

i have this:

<?php 
include_once './photogallery/index.php'; // works perfect
include_once './CodeigniterIntranet/photogallery/show'; // failed to open stream: No such file or directory
?> 

any advice?

1

Do you really have a php file named ./CodeigniterIntranet/photogallery/show (without the .php extension)?

| improve this answer | |
  • hi scott, no that's the url i use. photogallery is the controller, show the function in the controller – Dave Driesmans Aug 28 '13 at 11:09
  • 1
    Well, to include that you'll need URL include wrappers enabled in your PHP and to specify the include as a URL (if that's really what you want?). – Scott Hepler Aug 28 '13 at 11:31
  • URL include wrappers solved the issue! thanks :) – Dave Driesmans Aug 29 '13 at 14:56
  • OK, cool -- nice job! – Scott Hepler Aug 29 '13 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.