I’m having trouble finding information about how to use a model that doesn’t belong to the current controller.
For example: I have an ajax controller that sends only JSON data to application. This controller needs to access different models depending on request.
How do I do this?
Check out the Manual section titled $components, $helpers and $uses, you are looking for
$uses: