How do I create a controller with no view and model?
Making a services_controller to spit out json.
This is what I have now.
var $uses = array();
function test() {
$this->autoRender = false;
echo "test";
}
However, that doesn't print out the "test" message.
Thanks,
Tee
The above code actually works. The issue was somewhere else related to the Auth component.
Thanks,
Tee
Just write $this->autoRender = false; at the end of the function. It will surely work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With