Jump to content

Managing CodeIgniter Applications


ShoeLace1291

Recommended Posts

So I've been reading up on the user guide for info on managing applications.  I basically want to have three different applications under one domain name.  The only problem I encountered(which is a big one), is that you can only view one application at a time.  I have three applications, but how would I view each of them, one at a time, by defining the application in my url?  for example, if i wanted to view the "admin" application, the url would be http://localhost/admin

Link to comment
Share on other sites

I'm not a CI user but given your above example, it would seem to me it should be as simple as placing your point of entry index.php file within the appropriate directory, then within that file ensuring that the correct paths are configured.

 

I would be more inclined to use sub domains but its not really that different. With sub domains however your application itself could simply determine how to boostrap (and configure) the application based on what sub domain was used to access the application.

Link to comment
Share on other sites

I have three applications, but how would I view each of them, one at a time, by defining the application in my url?  for example, if i wanted to view the "admin" application, the url would be http://localhost/admin

 

What you are describing here sounds like different controllers.

Do you have controllers named public, admincp, ownercp, and forum?

 

Or are these separate folders with different applications. If it's different folders why not set up a virtual host for each?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.