I've tried these
request::is_ajax()
Request::instance()->is_ajax
To no avail. I've noticed in the request
class there is a public property $is_ajax
but I can't seem to be able to access the property.
What am I doing wrong?
in case anyone comes back to this, in Kohana 3.1 it is now $this->request->is_ajax(
) if you are in a controller.
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