• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
new to code igniter need help

#1
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.