using helpers with multiple applications

#1
[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

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

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

#4
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.