Welcome Guest, Not a member yet? Register   Sign In
n00b BASEPATH question: From where is the BASEPATH value obtained?
#1

[eluser]Unknown[/eluser]
I inherited a mess of code from a previous developer, and parts of the functionality are passed in and out of a CI instance, so I am learning CI.

Right now it looks like the BASEPATH is wrong. From where is the BASEPATH value obtained? I could not find it in the config files and no reference to the path in httpd.conf (I was thinking maybe it grabbed it from the Apache config or something, but it doesn't appear so).

I checked the user guide and numerous Google searches, as well as searching this forum. But if I missed it somewhere feel free to point me and I'll be on my way.

Thanks so much for your help and your patience with an obviously n00b question.

Thanks,

Yen
#2

[eluser]PhilTem[/eluser]
It's in index.php right at the root of your ci install

Code:
// Line 59
$system_path = 'system';

// Line 170
define('BASEPATH', str_replace("\\", "/", $system_path));
#3

[eluser]Unknown[/eluser]
I probably should have mentioned that I am using CI_VERSION 1.7.2

My index.php does not have the lines you mention. So, in short, CI is looking for my constants.php at the BASEPATH:

root/Library/Server/Web/Data/Sites/Default/php/web_production

when it SHOULD be looking in the BASEPATH:

root/Volumes/boot2/Library/WebServer/Documents/php/web_production

I am unable to decipher from where this derived in the index.php file. Here is my index.php on Dropbox:

https://www.dropbox.com/sh/oukr082diix9i...xphpCI.txt





Theme © iAndrew 2016 - Forum software by © MyBB