Hi I'm trying to use the CakePHP comments plugin found here it gives me the following error
Missing Method in CommentsController Error: The action index is not defined in controller CommentsController Error: Create CommentsController::index() in file: app\controllers\comments_controller.php.
So far I've created the comments table, added it to the plugins and added the following code to Test controller as I want to add comments in 'take' action:
public function beforeFilter() {
parent::beforeFilter(); $this->passedArgs['comment_view_type'] = 'flat'; $this->passedArgs['actionNames'] = 'take';
}
function take($id) {
$this->Test->recursive = 2; $this->set('test', $this->Test->read(null, $id));
}
I added the route
Router::connect('/comments/:action/*',array('plugin' => 'comments','controller' => 'comments'));
I'm just wondering if anyone has used this plugin before and can help me out?
thanks,
Brary