[eluser]Unknown[/eluser]
page name =>home.php
Code:
<?php
class home extends CI_Controller {
function home()
{
parent :: CI_controller();
}
public function index()
{
$data['title']= "My blog title";
$data['heading']="My blog heding";
$data['todo']= array ('Madhu','satya','Sheela','sangeetha','Ramu');
$this->load->view('home_view',$data);
}
}
?>
Quote:this code making an error
Fatal error: Call to undefined method CI_Controller::ci_controller() in D:\wamp\www\CodeIgniter\application\controllers\home.php on line 7
how can we change the error please help me .....
this code is copied from video tutorial in code igniter website
with out the
function home() it this code working fine.