Automatic config[base_url] |
[eluser]bhogg[/eluser]
We'll need to tweak it a bit more... doesn't basename() return the final portion of the URL? So with someone accessing a page such as: http://localhost/subdirectory/controller...arm1/parm2 It would return something like "http://localhost/subdirectory/controllername/function/parm1" with the last piece removed. We could use a simple search for the first / after the root URL to get the subdirectory, if we limit it to one level deep. But what about when it's launched to www.domain.com? Wouldn't it then interpret the controllername as the subdirectory instead? Brian |
Messages In This Thread |
Automatic config[base_url] - by El Forum - 09-05-2007, 08:19 AM
Automatic config[base_url] - by El Forum - 09-05-2007, 08:40 AM
Automatic config[base_url] - by El Forum - 09-19-2007, 10:05 AM
Automatic config[base_url] - by El Forum - 09-19-2007, 02:40 PM
Automatic config[base_url] - by El Forum - 09-19-2007, 07:44 PM
Automatic config[base_url] - by El Forum - 09-20-2007, 06:07 PM
Automatic config[base_url] - by El Forum - 10-09-2007, 07:41 AM
Automatic config[base_url] - by El Forum - 10-25-2007, 03:39 PM
Automatic config[base_url] - by El Forum - 10-27-2007, 07:29 PM
Automatic config[base_url] - by El Forum - 10-27-2007, 11:21 PM
Automatic config[base_url] - by El Forum - 11-04-2007, 10:02 PM
Automatic config[base_url] - by El Forum - 11-06-2007, 04:23 AM
Automatic config[base_url] - by El Forum - 11-25-2007, 08:42 AM
Automatic config[base_url] - by El Forum - 12-06-2007, 02:08 PM
Automatic config[base_url] - by El Forum - 12-06-2007, 04:19 PM
Automatic config[base_url] - by El Forum - 12-06-2007, 04:29 PM
Automatic config[base_url] - by El Forum - 12-06-2007, 04:58 PM
Automatic config[base_url] - by El Forum - 12-07-2007, 02:46 AM
Automatic config[base_url] - by El Forum - 03-18-2008, 11:38 AM
Automatic config[base_url] - by El Forum - 03-18-2008, 11:51 AM
Automatic config[base_url] - by El Forum - 03-18-2008, 11:53 AM
Automatic config[base_url] - by El Forum - 03-18-2008, 11:54 AM
Automatic config[base_url] - by El Forum - 03-18-2008, 12:49 PM
Automatic config[base_url] - by El Forum - 03-21-2008, 12:19 PM
Automatic config[base_url] - by El Forum - 03-21-2008, 01:33 PM
Automatic config[base_url] - by El Forum - 04-08-2008, 11:10 PM
Automatic config[base_url] - by El Forum - 04-09-2008, 08:44 AM
Automatic config[base_url] - by El Forum - 04-22-2008, 10:56 AM
Automatic config[base_url] - by El Forum - 04-23-2008, 04:07 AM
Automatic config[base_url] - by El Forum - 04-23-2008, 04:14 AM
Automatic config[base_url] - by El Forum - 04-23-2008, 08:06 PM
Automatic config[base_url] - by El Forum - 04-23-2008, 08:21 PM
Automatic config[base_url] - by El Forum - 04-23-2008, 09:00 PM
Automatic config[base_url] - by El Forum - 04-24-2008, 11:09 AM
Automatic config[base_url] - by El Forum - 04-24-2008, 01:19 PM
Automatic config[base_url] - by El Forum - 04-24-2008, 10:50 PM
Automatic config[base_url] - by El Forum - 04-25-2008, 12:53 AM
Automatic config[base_url] - by El Forum - 04-25-2008, 08:21 PM
Automatic config[base_url] - by El Forum - 05-02-2008, 10:26 AM
Automatic config[base_url] - by El Forum - 05-04-2008, 02:36 AM
Automatic config[base_url] - by El Forum - 08-08-2008, 12:07 PM
Automatic config[base_url] - by El Forum - 10-07-2008, 03:28 AM
Automatic config[base_url] - by El Forum - 10-07-2008, 05:08 AM
Automatic config[base_url] - by El Forum - 07-01-2009, 01:06 AM
Automatic config[base_url] - by El Forum - 09-25-2009, 11:07 AM
Automatic config[base_url] - by El Forum - 09-25-2009, 12:00 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 12:56 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 01:51 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 02:20 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 02:23 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 02:33 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 03:07 PM
Automatic config[base_url] - by El Forum - 09-25-2009, 05:05 PM
Automatic config[base_url] - by El Forum - 09-26-2009, 04:18 AM
Automatic config[base_url] - by El Forum - 09-28-2009, 03:58 AM
Automatic config[base_url] - by El Forum - 11-21-2010, 11:10 PM
Automatic config[base_url] - by El Forum - 05-11-2011, 09:19 AM
|