CodeIgniter Forums

Full Version: using helpers with multiple applications
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

[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).

El Forum

[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