Hi, i have the following code:
$router->addGet("/api/user", array(
'controller' => 'ApiUserController',
'action' => 'getUsers',
)
);
And in the controller ApiUserController:
public function getUsersAction()
{
// return users in JSON format
}
And in my other controller "UserController", i have:
public function indexAction()
{
// api/user call via REST
}
How do i call the route "api/user" and get the returning JSON object?
Thanks in advance