• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two sites - one ci

As the title says I need to run two sites with one installation of CI 2.0.

The first one is the backend and the second one the frontend. A CMS like. What i need to do in order to achieve that?

I am sure that i need to have to application folders but i don't where should put them and what other configuration i need to do.

For example:

1) website.com : the front-end, the actual site for users

2) website.com/administrator : the back-end where i make changes like inserting data to a db which data are going to be shown in the front-end.

I'm sure many people here need to do this.

Thanks in advance!!

How to: Multi-site CodeIgniter Set-up
How to: Support multiple production environments in CodeIgniter
CodeIgniter Base Classes: Keeping it DRY
Managing your Applications : CodeIgniter User Guide

these are not clear. They miss things about configuration.

ok, i manage this as follows:


Then i add this line in routes.php: $route['admin'] = 'admin/(and the controller you want to be the default in the admin controller)';

I have it like that and i didn't have to put anything in routes.php, it works just fine.

if i remove the $routes['admin'] = 'admin/...' when i type in the URL mywebsite.com/admin it redirects me to the default controller that i have set here :$route['default_controller']

I have in my routes the default controller set to
$route['default_controller'] = 'main';
And i have my folders (and controllers) like this:

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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