Error: Call to a member function create() on a non-object

class BookListsController extends AppController{
    public function add(){               
       if($this->request->is('post')) {
            print_r($this->request->data);
           $this->Booklist->create();
           $this->Booklist->save($this->request->data);
       }
    }
}

this is my controller class when i run the problem. it display a msg Error: Call to a member function create() on a non-object..
help me… i am new to cakephp


Source: php

Leave a Reply