Hi everyone
I am trying to do this...
$filter = 'NumberOfBeds >= '&& $minbeds &&' AND maxprice < ' && $maxprice && ' AND minprice > ' && $minprice;
However when I debug it, it just says filter is a bool=none value?!?
Am I doing something really stupid?
function PropertySearchResults() {
$minbeds = Session::get('minbeds');
$maxprice = Session::get('maxprice');
$minprice = Session::get('minprice');
$filter = 'NumberOfBeds >= '&& $minbeds &&' AND maxprice < ' && $maxprice && ' AND minprice > ' && $minprice;
Debug::show($filter);
$properties = DataObject::get('PropertyDetail',$filter);
return $properties;
}
Thanks!