I tried these
request::is_ajax() Request::instance()->is_ajax
To no avail. I noticed that the public property $is_ajax exists in the request class, but I cannot access this property.
$is_ajax
request
What am I doing wrong?
You can also use this:
if (Request::$is_ajax OR $this->request !== Request::instance()) { .. }
So you know this is ajax- or ajax-like-request
I use this in my base controller class, so I know whether to display the full or partial view.
if someone comes back to this, in Kohana 3.1 now $this->request->is_ajax( ) if you are in the controller.
$this->request->is_ajax(
I ended up working with Request::$is_ajax
Request::$is_ajax
It seems that they got rid of this function and now rely on a public property.
Source: https://habr.com/ru/post/1300260/More articles:MVC pattern: where does the formatting / processing work belong? (Objective-C) - objective-cEclipse does not create helpl file - javanant vs. msbuild: stopping a service - build-processhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1300258/index.html&usg=ALkJrhjsUUwXxLZXldgPTk2PB85XmJZrUwService Usage Example Is there an MSBuild task in Microsoft.Sdc.Tasks? - .nethow can i make equations smaller in tex? - latexC # XNA: stopping and playing Cue objects (sound) - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1300263/cloning-a-repository-results-in-a-timeout&usg=ALkJrhhuV4S1zEwlE8uAFOp7vp0jriBgsgScrolling a ListView with a mouse wheel sometimes cancels scrolling - c ++how to call iphone application from another application - iphoneAll Articles