CodeVouchersController::index() - APP/controllers/vouchers_controller.php, line 1112
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 90
Code |
Context$conditions = array(
"Voucher.approved" => 1,
"Voucher.category_id" => 0,
"Retailer.approved" => 1,
"Voucher.expires >=" => "2010-03-18"
)
'Voucher.expires >=' => date('Y-m-d'));
if ($type == 'latest') {
VouchersController::index() - APP/controllers/vouchers_controller.php, line 1120
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 90
Code |
Context$conditions = array(
"Voucher.approved" => 1,
"Voucher.category_id" => 0,
"Retailer.approved" => 1,
"Voucher.expires >=" => "2010-03-18"
)
$conditions['Voucher.created >='] = date('Y-m-d', time() - (25 * 24 * 60 * 60));
$conditions['Voucher.type'] = 'Discount';
} elseif ($type == 'all') {
VouchersController::index() - APP/controllers/vouchers_controller.php, line 1125
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 90