Welcome Guest, Not a member yet? Register   Sign In
Forced to use relative base_url
#1

[eluser]tokyotech[/eluser]
I have my base_url set to "../". I can't use an absolute base_url because I'm using iFrames to do fake-AJAX image uploads. Using an absolute base_url would give permission denied errors if the user got to my site with a slightly different base URL (ex: http://www.site.com VS http://site.com VS www.site.com).

So far it's been working out fine because I've only been using the index() function of each controller. However, now I want to have a controller's method load a view (index.php/myController/myMethod). If I use this kind of method, the base_url will incorrectly go one level back to index.php/myController/.

What's the remedy?


Messages In This Thread
Forced to use relative base_url - by El Forum - 09-18-2009, 04:40 PM
Forced to use relative base_url - by El Forum - 09-18-2009, 07:38 PM
Forced to use relative base_url - by El Forum - 09-22-2009, 04:57 PM
Forced to use relative base_url - by El Forum - 10-11-2009, 01:20 AM
Forced to use relative base_url - by El Forum - 10-11-2009, 03:42 AM
Forced to use relative base_url - by El Forum - 10-11-2009, 04:31 AM
Forced to use relative base_url - by El Forum - 10-11-2009, 08:20 AM
Forced to use relative base_url - by El Forum - 10-11-2009, 09:22 AM
Forced to use relative base_url - by El Forum - 10-14-2009, 01:32 AM
Forced to use relative base_url - by El Forum - 10-20-2009, 11:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB