Line 20 in /home/virtualki/219910/app/src/CarsPageController.php
11 private static $allowed_actions = array( 12 'pobierzMarki', 'pobierzModele', 'pobierzPaliwa', 'pobierzNadwozia', 'pobierzStany', 'getCarsJSON', 'show' 13 ); 14 15 public function getCars() 16 { 17 $data = $this->request->getVars(); 18 $cars = Car::get()->where('Hidden=0'); 19 { 20 $cars = $cars->where("Marka LIKE '" . $data["marka"] . "%'"); 21 $cars = $cars->where("Model LIKE '" . $data["model"] . "%'"); 22 $cars = $cars->where("Stan LIKE '" . $data["stan"] . "%'"); 23 $cars = $cars->where("Paliwo LIKE '" . $data["paliwo"] . "%'"); 24 $cars = $cars->where("Nadwozie LIKE '" . $data["nadwozie"] . "%'"); 25 $sortowanie = $data["sort"]; 26 //$liczbaElementow = $data["pages"];