按观看时间中的日期范围过滤

时间:2019-03-11 06:08:53

标签: php range

使用过滤器列表而不是工作日期过滤器按视图时间日期中的日期范围进行过滤?

if ($this->request->is('post')) {
    $from= $this->request->data["from"];
    $to= $this->request->data["to"];
}
$vehicles= TableRegistry::get('Vehicles');
$vehicle = $vehicles->get($id, ['contain' => ['userdata','admindata', 'TrackingDevices', 'VehicleDetails', 'VehicleLocations']]);

0 个答案:

没有答案