02-24-2016, 12:16 PM
For some reason your classes are not autoloading, which seems to me like a path issue. Here's how that path thing should look...
function env($type='server'){
if($type == 'server'){
if($_SERVER['HTTP_HOST'] == 'localhost'){
return $_SERVER['DOCUMENT_ROOT'].
'us4/';
}else{
return $_SERVER['DOCUMENT_ROOT'].
'us4/';
}
}else{
if($_SERVER['HTTP_HOST'] == 'localhost'){
return
'us4/';
}else{
return
'us4/';
}
}
}
See above there are 4 places that say us4/ ? If you are on a live server for example, all four of those things should either be /yourfolder/ or yourfolder/
It seems like you might not have gotten all 4 of them. I'll be happy to help further if you have issues.
function env($type='server'){
if($type == 'server'){
if($_SERVER['HTTP_HOST'] == 'localhost'){
return $_SERVER['DOCUMENT_ROOT'].
'us4/';
}else{
return $_SERVER['DOCUMENT_ROOT'].
'us4/';
}
}else{
if($_SERVER['HTTP_HOST'] == 'localhost'){
return
'us4/';
}else{
return
'us4/';
}
}
}
See above there are 4 places that say us4/ ? If you are on a live server for example, all four of those things should either be /yourfolder/ or yourfolder/
It seems like you might not have gotten all 4 of them. I'll be happy to help further if you have issues.