CodeIgniter Forums
flash and CI - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: flash and CI (/showthread.php?tid=14614)

flash and CI - El Forum - 01-08-2009

I have a flash app and I use the absolute path via the $base variable (http:url/flash path/flash) but this project may have more than 2 domains, so I preffer to use a relative path, is there any way for this via CI?

flash and CI - El Forum - 01-10-2009

Hi Dimis,

I want to make sure I understand what you're trying to do.

1. You have a Flash app that may exist at more than one domain?
2. You want someway that you don't have to update the $config['base_url'] for each domain?

If this is what you're asking then you could change your $config['base_url'] variable to (if your app is actually in a "flash" folder):

$config['base_url']    = strtolower('http://'.$_SERVER['HTTP_HOST'].'/flash');

If I'm completely off, let me know and I'll try to figure it out.