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

Dear Sir,

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

class Blog extends CI_Controller {

Quote: function Blog()

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??

What version of php are you running

If your running CodeIgniter v2.0.+ then you have to change Controller to CI_Controller and Model to CI_Model
also the constructor is new!
public function __construct()
    // NOTE: The constructor is not need unless you are setting parameters!


yeah am using Codeigniter V2.0, thanks a lot it works now...
I need it because I want to load Helper to use the function anchor(); for comments

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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