CodeIgniter Forums
using helpers with multiple applications - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: using helpers with multiple applications (/showthread.php?tid=2346)



using helpers with multiple applications - El Forum - 07-31-2007

[eluser]buggzzy[/eluser]
Hi,
I'm trying to get my configuration to run. Here is my structure:
Code:
domainname.com
-> codeigniter
   -> system
-> docroot
   -> index.php (header Location to default app)
   -> app1
      -> index.php
   -> app2
      -> index.php
-> applications
   -> app1
   -> app2
Now the problem are the helper classes like url helper. The function site_url returns something like that "index.php/app1". Is it possible to get the helper functions work correctly with this config? I think it's always a problem if changes to the folder structure are done, isn't it?

Thanks


using helpers with multiple applications - El Forum - 08-05-2007

[eluser]CI TaMeR[/eluser]
Have you configured your application directory right in the index.php file?


using helpers with multiple applications - El Forum - 08-07-2007

[eluser]buggzzy[/eluser]
I configured in the root index.php the default application (../applications/mydefaultapp). The index.php's in the subfolders linking directly to the application (../../application/mysecondapp).


using helpers with multiple applications - El Forum - 08-07-2007

[eluser]CI TaMeR[/eluser]
Got it you need to set it up like this
Code:
domainname.com
-> codeigniter
   -> system
-> docroot
   -> index.php (header Location to default app)
   -> app2.php  (header Location to app2)
   -> app1
       -> image
       -> css
       -> js
  -> app2
       -> image
       -> css
       -> js
-> applications
   -> app1
   -> app2