• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parent::controller

#1
[eluser]suzie[/eluser]
Dear Sir,

Am watching the video tutorial from the site, but when am adding the function BLog:

<?php
class Blog extends CI_Controller {


Quote: function Blog()

{
parent::Controller();
}
function index()
{
}

}

?>

it gives me an error:

Fatal error: Call to undefined method CI_Controller::controller() in C:\wamp\www\application\controllers\blog.php on line 8




Any help please??


Messages In This Thread
Parent::controller - by El Forum - 07-27-2011, 06:18 AM
Parent::controller - by El Forum - 07-27-2011, 06:49 AM
Parent::controller - by El Forum - 07-27-2011, 07:10 AM
Parent::controller - by El Forum - 07-28-2011, 12:34 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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