• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error message when trying to follow codeignitor tutorial

#1
[eluser]jayreis[/eluser]
I am getting the following error when I go to my http://domain.com/index.php/blog
url

Code:
Call to undefined method CI_Loader::scaffolding()

I am trying to build a basic blog page using the video here
http://codeigniter.com/tutorials/watch/blog/

now I am using CI 2.1.2
here is my blog.php file inside my controller
Code:
<?php

  class Blog extends CI_Controller
  {

    function Blog()
    {
        parent::controller();
        $this->load->scaffolding('blog_posts');
    }

    function index()
    {
         $data['title'] = 'hello world';
         $this->load->view('blog_view', $data);
    }
  }

?>

suggestions?
The error seems to come from the line
parent::controller();
inside the Blog function

#2
[eluser]Komeniusz[/eluser]
Scaffolding has been removed from CI 2.0.x

#3
[eluser]jayreis[/eluser]
now any updated tutorials on how to make a basic blog?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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