Welcome Guest, Not a member yet? Register   Sign In
Database.php Error - Blog Tutorial
#1

[eluser]php-zbatev[/eluser]
Hello,

I'm new to CodeIgniter and this is my first post... I was following the Blog Tutorial Screencast but I'ved encountered this error when I tried this(http://localhost/ci_helloworld/index.php...affolding/):

THE ERROR:
An Error Was Encountered
Your database.php file does not appear to contain a valid configuration array.

My DATABASE.PHP

$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "mysqlpassword"; //ive set this to my password
$db['default']['database'] = "blog";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

Please help, thank you.
#2

[eluser]php-zbatev[/eluser]
i got it, i messed up in my autoload config, as of CI 1.6, one was suppose to autoload libraries from here:

$autoload['libraries'] = array('database');

thanks anyway, until my next post...




Theme © iAndrew 2016 - Forum software by © MyBB