Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Subdomains
#6

[eluser]Maglok[/eluser]
Well that works. I can use index.php's to port to the main application. But index.php is before CI launches basically right? Then how would I parse like a 'load in this subsite template' variable?

Basically for each subsite I have a different footer/header. The main view file is the same like so:

Code:
<?php $this->load->view('site1_header'); ?>
<!-- Do stuff -->
<?php $this->load->view('site1_footer'); ?>

I'd have to add like a variable to it kinda like this:

Code:
<?php $this->load->view($site . "_header'); ?>
<!-- Do stuff -->
<?php $this->load->view($site . "_footer'); ?>

My issue being how do I grab that from index.php?

EDIT: And I just noticed it doesnt take the subdomain as the site_url, so any links generated with site_url('page') will still link to the main domain and not the subdomain.


Messages In This Thread
[SOLVED] Subdomains - by El Forum - 02-16-2010, 10:10 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 12:55 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 01:42 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 02:36 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 03:08 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 04:56 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 05:48 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:01 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:12 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:22 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:42 AM
[SOLVED] Subdomains - by El Forum - 02-19-2010, 03:25 AM
[SOLVED] Subdomains - by El Forum - 02-19-2010, 04:34 AM
[SOLVED] Subdomains - by El Forum - 02-19-2010, 05:40 AM
[SOLVED] Subdomains - by El Forum - 04-11-2010, 05:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB