You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'));
}
}
The text was updated successfully, but these errors were encountered:
I had the same issue - in cakephp 2.X. In cakephp 2.x you need to manually load any required plugins by adding the following to the bootstrap.php file
CakePlugin::loadAll();
or
CakePlugin::load('Rest');
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'),
),
),
),
);
}
The text was updated successfully, but these errors were encountered: