Welcome Guest, Not a member yet? Register   Sign In
flash and CI

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?

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.

Theme © iAndrew 2016 - Forum software by © MyBB