![]() |
flash and CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: flash and CI (/showthread.php?tid=14614) |
flash and CI - El Forum - 01-08-2009 [eluser]dimis[/eluser] 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? Dimis flash and CI - El Forum - 01-10-2009 [eluser]jtkendall[/eluser] 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): Code: $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. |