Example #1
0
 protected function sniffAction()
 {
     $this->reset_url = $this->url->remove('ALL')->append('reset' . $this->cid, 1)->get();
     $this->process_url = $this->url->remove('ALL')->append('search' . $this->cid, 1)->get();
     ///// search /////
     if ($this->url->value('search')) {
         $this->action = "search";
         Persistence::save();
     } elseif ($this->url->value("reset")) {
         $this->action = "reset";
         Persistence::clear();
     } else {
         Persistence::clear();
     }
 }