Multiple keyword search using like in CakePHP
Controller function searchCustomers($query=NULL){ $this->Customer->recursive = 0; //check if there is form input //if there is form input write those values in session for paging if (isset($this->data[‘Customers’][‘search’])){ $queryString = $this->data[‘Customers’][‘search’]; CakeSession::write(‘Config.query’, $queryString); } //if there is no form […]