i just try , and get this Fatal error: Class 'Config' not found in C:\xampp1\htdocs\userspice2\models\DB.php on line 27..
is because the pdo ?
my bad. db doesnt include config.php. all ready did it. but the text change to "Notice: Trying to get property of non-object in "
Sorry...I tried that on my system and I think it may have worked because I was already attached to the database.
You might have to go in your config.php and setup your globals manually... try adding this to config.php (with your credentials).
$GLOBALS['config'] = array(
'mysql' => array('host' => 'YOUR_HOST',
'username' => 'YOUR_DB_USERNAME',
'password' => 'YOUR_DB_PW',
'db' => 'YOUR_DB_NAME',
),
'remember' => array(
'cookie_name' => 'pmqesoxiw318374csb',
'cookie_expiry' => 604800 //One week, feel free to make it longer
),
'session' => array(
'session_name' => 'user',
'token_name' => 'token',
)
);