Notice (8): Undefined offset: 0 [APP/controllers/products_controller.php, line 34]
Code |
Context$category_url = "dinner_bed_breakfast_gift_voucher"
$product_url = "3_night_south_island_combo_christchurch_queenstown_gift_voucher"
$recursive = 2
$categories = array(
array(
"Category" => array(),
"Product" => array(),
"Group" => array()
)
)
$products = array()
// Check if product is restricted to a group
//debug($products);
if($products[0]['Category'][0]['restrict_to_group'] == 1 AND $products[0]['Category'][0]['open_access'] == 0) {
ProductsController::gift_vouchers() - APP/controllers/products_controller.php, line 34
Object::dispatchMethod() - CORE/cake/libs/object.php, line 119
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 92
Warning (2): Cannot modify header information - headers already sent by (output started at /home/awaytogo/public_html/cake/basics.php:111) [CORE/cake/libs/controller/controller.php, line 640]
Code |
Context$status = "Location: http://www.awaytogo.co.nz/products/gift_voucher_categories.html"
header - [internal], line ??
Controller::header() - CORE/cake/libs/controller/controller.php, line 640
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 621
ProductsController::gift_vouchers() - APP/controllers/products_controller.php, line 43
Object::dispatchMethod() - CORE/cake/libs/object.php, line 119
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 92