Skip to content

I keep getting an internal server error 500 #22

@johannesjo

Description

@johannesjo

For all requests are made to the model where the component is called. Everything else looks like it is working.

Here is my controller code:
class CommentsController extends AppController {
public $components = array (
'RequestHandler',
'Rest.Rest' => array(
'catchredir' => true,
'actions' => array(
'extract' => array(
'index' => array('comments'),
),
),
),
);

public function index() {
    $comments = $this->Comment->find('all');
    // for testing: $comments= array("test","t8adsdas");
    $this->set(compact('comments'));
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions