Welcome Guest, Not a member yet? Register   Sign In
Multiple Applications
#1

[eluser]ShoeLace1291[/eluser]
Ok, so I'll admit that I'm a little confused by the multiple applications section of the user guide. I've read literally every bit of the guide for this, but I still don't get it. There are four sections to my website: public, admincp, ownercp, and forum. I want public to be the default application when visiting the root of my website. This is how I currently have my applications set up:

Code:
/root
  index.php
  /system
    (other system folders)
  /applications
    /public
      /controllers
      //config
      /models
      /views
      etc...
    /admincp
      /controllers
      /config
      /models
      /views
      etc...
  
you get the idea!

If read up on other tutorials that say you need an index.php in each application folder. so there would be an applications/public/index.php which would have the $application_folder variable set to "applications/public".

When I go to localhost/admincp, i get a 404 not found error. Could someone please help me with this?
#2

[eluser]Bart v B[/eluser]
Hmm.. Don't you want to make something like modules?
I think that's more easyer then what you are trying now.

Search for modules here, there are a lot of topic of them. Wink
#3

[eluser]ShoeLace1291[/eluser]
Ok, so i've figured out how to organize and access the different applications. The only problem I've come across is that I want the "public" application to be the default app when visiting my root url. Right now it's accessed by "http://localhost/public.php". I want all other apps to be accessed by http://localhost/admincp", etc but I want public to show up all the time when you visit "http://localhost". Any ideas?
#4

[eluser]Bart v B[/eluser]
In your application/config/routes.php :

Code:
$route['default_controller'] = "public";




Theme © iAndrew 2016 - Forum software by © MyBB