Welcome Guest, Not a member yet? Register   Sign In
Error by Database
#1

[eluser]Unknown[/eluser]
I´m new, and I have loadet version 1.7.2

After I´m watching the Video-Tutorials. Video 1 I´m ready, but Video 2 is a little bit confused.

The Video 2 is a other Version, because by the autoload.php is a point called "$autoload['core'] = array();"

This point is in the current Version not defined.

I´ve filled out the database.php with my dates, and loadet up the file.

Now i have the following message:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Blog::$db

Filename: controllers/blog.php

Line Number: 12

Fatal error: Call to a member function get() on a non-object in /var/www/web171/html/CodeIgniter/system/application/controllers/blog.php on line 12

WHAT can i do???

sorry, my english is not so good, i´m german Wink
#2

[eluser]jedd[/eluser]
Hi no-mercy and welcome to the CI forums.

When you're posting this kind of thing, be sure to post the code that's causing problems - and note which is the line # that generated the error.

In this case, though, it looks a bit easier.

Is your 'autoload' configured now to autoload the database class?

If not, modify your autoload.php file to include this:
Code:
$autoload['libraries'] = array('database');




Theme © iAndrew 2016 - Forum software by © MyBB