forked from rodrigorm/rest
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
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
Labels
No labels