[eluser]spagi[/eluser]
Hi i have problem
Fatal error: Call to a member function on a non-object in /3w/zaridi.to/s/spagi/system/application/controllers/blog.php on line 17
Code:
<?php
class Blog extends Controller {
function Blog ()
{
parent::Controller();
}
function index()
{
$data['title']="MS Rymarov";
$data['heading']="MS RYM";
$data['query']=$this->db->get('clenove');////line 17
$this->load->view('blog_ukaz', $data);
}
}
?>
Can anyone explain what is wrong?