Code Context $this->Category->contain('Attachment');
$current_category = $this->Category->findBySlug($path[1]);
if (!$current_category['Category']['visible']) {
$path = array(
(int) 0 => 'indoor',
(int) 1 => 'havana'
)
$count = (int) 2
$current_category = array()
$current_parent = array(
'Category' => array(
'id' => '10',
'site_id' => '1',
'parent_id' => null,
'lft' => '65',
'rght' => '94',
'name' => 'Indoor',
'attachment_id' => '2561',
'description' => 'The simple yet elegant look of natural rattan and wicker has been a timeless asset to homes everywhere through the generations. This eco-friendly, highly renewable resource is also one of nature's strongest materials. Discover our various seating and dining collections with a range of upholstery options.',
'visible' => true,
'count' => '0',
'slug' => 'indoor',
'created' => '2014-01-21 18:05:19',
'modified' => '2017-02-09 21:10:06'
),
'Attachment' => array(
'id' => '2561',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Bermuda-P-Seating.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Bermuda-P-Seating-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Bermuda-P-Seating-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '118714',
'sort' => null,
'created' => '2017-02-09 21:10:05',
'modified' => '2017-02-09 21:10:05'
)
)
$breadcrumb = array(
(int) 0 => array(
'name' => 'Indoor',
'url' => '/collection/indoor'
)
)
$children = array(
(int) 0 => array(
'Category' => array(
'id' => '36',
'site_id' => '1',
'parent_id' => '10',
'lft' => '66',
'rght' => '67',
'name' => 'Antigua',
'attachment_id' => '79',
'description' => 'The Antigua collection calls to mind carefree relaxation in that perfect tropical getaway. The sturdy rattan pole framing is detailed with a beautifully swooping criss-cross motif. Choose from a wide selection of seating, dining and accent pieces within the collection.',
'visible' => true,
'count' => '19',
'slug' => 'antigua',
'created' => '2014-01-30 18:22:20',
'modified' => '2017-03-13 18:06:37'
),
'Attachment' => array(
'id' => '79',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-Antigua.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-Antigua-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-Antigua-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '142861',
'sort' => null,
'created' => '2014-01-30 18:16:11',
'modified' => '2014-01-30 18:16:11'
)
),
(int) 1 => array(
'Category' => array(
'id' => '37',
'site_id' => '1',
'parent_id' => '10',
'lft' => '68',
'rght' => '69',
'name' => 'Autumn Morning',
'attachment_id' => '80',
'description' => 'The beauty is in the detail. The Autumn Morning collection takes the natural beauty of wicker to new levels with its rich finish and intricate weave patterns. This unique yet classic look is versatile enough for both casual and formal occasions, with various seating and dining options.',
'visible' => true,
'count' => '10',
'slug' => 'autumn-morning',
'created' => '2014-01-30 18:25:01',
'modified' => '2022-12-06 14:12:34'
),
'Attachment' => array(
'id' => '80',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-AutumnMorning.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-AutumnMorning-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-AutumnMorning-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '148409',
'sort' => null,
'created' => '2014-01-30 18:22:40',
'modified' => '2014-01-30 18:22:40'
)
),
(int) 2 => array(
'Category' => array(
'id' => '99',
'site_id' => '1',
'parent_id' => '10',
'lft' => '70',
'rght' => '71',
'name' => 'Bali',
'attachment_id' => '1560',
'description' => 'Tropical glamour meets casual comfort with the Bali collection. Elegantly curving rattan framing creates a unique look with high wingbacks and woven details, striking a perfect balance between formal elegance and kick-back-and-relax ease. Expertly finished in an almond-tone color that is as versatile as it is beautiful.',
'visible' => true,
'count' => '7',
'slug' => 'bali',
'created' => '2014-10-06 16:10:21',
'modified' => '2016-04-05 15:58:13'
),
'Attachment' => array(
'id' => '1560',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-Bali.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-Bali-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-Bali-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '139957',
'sort' => null,
'created' => '2014-10-06 16:10:15',
'modified' => '2014-10-06 16:10:15'
)
),
(int) 3 => array(
'Category' => array(
'id' => '38',
'site_id' => '1',
'parent_id' => '10',
'lft' => '72',
'rght' => '73',
'name' => 'Bermuda',
'attachment_id' => '81',
'description' => 'The classic grace of natural rattan and wicker lives on in the Bermuda collection. Choose from Pecan or Whitewash finishes, in an array of seating, dining and accent pieces.',
'visible' => true,
'count' => '15',
'slug' => 'bermuda',
'created' => '2014-01-30 18:29:26',
'modified' => '2017-02-09 14:15:47'
),
'Attachment' => array(
'id' => '81',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-Bermuda.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-Bermuda-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-Bermuda-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '121551',
'sort' => null,
'created' => '2014-01-30 18:25:21',
'modified' => '2014-01-30 18:25:21'
)
),
(int) 4 => array(
'Category' => array(
'id' => '100',
'site_id' => '1',
'parent_id' => '10',
'lft' => '74',
'rght' => '75',
'name' => 'Nadine',
'attachment_id' => '1576',
'description' => 'The timeless look of traditional rattan now meets a more modern silhouette. Available in two elegant finishes, the Nadine breathes fresh life into the beauty of rattan furniture we know and love. Discover the seating and dining options in this exciting collection.',
'visible' => true,
'count' => '12',
'slug' => 'nadine',
'created' => '2014-10-06 17:18:15',
'modified' => '2017-03-13 18:14:47'
),
'Attachment' => array(
'id' => '1576',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-Nadine.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-Nadine-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-Nadine-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '125942',
'sort' => null,
'created' => '2014-10-06 17:15:05',
'modified' => '2014-10-06 17:15:05'
)
),
(int) 5 => array(
'Category' => array(
'id' => '41',
'site_id' => '1',
'parent_id' => '10',
'lft' => '76',
'rght' => '77',
'name' => 'New Kauai',
'attachment_id' => '84',
'description' => 'As its name suggests, the New Kauai collection brings tropical flair to any room. Finished in a warm Pecan, the sturdy rattan pole construction strikes a perfect balance of simple lines with playful detail. Available in various seating, dining and accent options.',
'visible' => true,
'count' => '7',
'slug' => 'new-kauai',
'created' => '2014-01-30 18:47:06',
'modified' => '2022-12-01 18:57:50'
),
'Attachment' => array(
'id' => '84',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-NewKauai.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-NewKauai-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-NewKauai-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '155772',
'sort' => null,
'created' => '2014-01-30 18:42:58',
'modified' => '2014-01-30 18:42:58'
)
),
(int) 6 => array(
'Category' => array(
'id' => '42',
'site_id' => '1',
'parent_id' => '10',
'lft' => '78',
'rght' => '79',
'name' => 'New Twist',
'attachment_id' => '85',
'description' => 'Now here's a new twist on rattan. The New Twist collection brings unexpected and beautiful detail with its helix-like shaping and warm Antique finish. Its quality construction, thoughtful aesthetic and various seating and dining options work perfectly in a host of settings that range from casual lounging to formal entertaining. ',
'visible' => true,
'count' => '19',
'slug' => 'new-twist',
'created' => '2014-01-30 18:53:27',
'modified' => '2016-05-31 19:22:01'
),
'Attachment' => array(
'id' => '85',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-NewTwist.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-NewTwist-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-NewTwist-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '140835',
'sort' => null,
'created' => '2014-01-30 18:48:43',
'modified' => '2014-01-30 18:48:43'
)
),
(int) 7 => array(
'Category' => array(
'id' => '43',
'site_id' => '1',
'parent_id' => '10',
'lft' => '80',
'rght' => '81',
'name' => 'Pacifica',
'attachment_id' => '86',
'description' => 'The beauty of woven natural rattan and wicker, reinterpreted with a more stately presence. The Pacifica collection's refined aesthetic and versatility transitions effortlessly from formal entertaining to lounging with your feet up. Choose from various seating and dining options.',
'visible' => true,
'count' => '11',
'slug' => 'pacifica',
'created' => '2014-01-30 19:04:00',
'modified' => '2016-04-05 18:05:30'
),
'Attachment' => array(
'id' => '86',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-Pacifica.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-Pacifica-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-Pacifica-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '115735',
'sort' => null,
'created' => '2014-01-30 18:54:13',
'modified' => '2014-01-30 18:54:13'
)
),
(int) 8 => array(
'Category' => array(
'id' => '44',
'site_id' => '1',
'parent_id' => '10',
'lft' => '82',
'rght' => '83',
'name' => 'Palm Harbor',
'attachment_id' => '87',
'description' => 'Just as its name suggests, the Palm Harbor celebrates all things tropical with rattan detail resembling palm fronds. Its rich finish and comfortable seating works perfectly for a variety of room settings and uses. Available in deep seating and dining options.',
'visible' => true,
'count' => '12',
'slug' => 'palm-harbor',
'created' => '2014-01-30 19:06:11',
'modified' => '2017-03-13 18:36:54'
),
'Attachment' => array(
'id' => '87',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Indoor-Collections-PalmHarbor.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Indoor-Collections-PalmHarbor-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Indoor-Collections-PalmHarbor-resized-460x174.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '146569',
'sort' => null,
'created' => '2014-01-30 19:04:17',
'modified' => '2014-01-30 19:04:17'
)
),
(int) 9 => array(
'Category' => array(
'id' => '101',
'site_id' => '1',
'parent_id' => '10',
'lft' => '84',
'rght' => '85',
'name' => 'Rattan Swivel Rockers',
'attachment_id' => '1867',
'description' => 'Style, comfort and versatility meet in our Swivel Rocker collection. The swivel and rock features, combined with high quality cushions, keep you relaxed for hours on end! Use these as accent pieces or create a seating oasis with a few around a cocktail table. ',
'visible' => false,
'count' => '2',
'slug' => 'rattan-swivel-rockers',
'created' => '2015-07-06 18:05:11',
'modified' => '2022-12-12 15:18:12'
),
'Attachment' => array(
'id' => '1867',
'site_id' => '1',
'item_id' => null,
'product_id' => null,
'title' => '',
'filename' => '/files/uploads/Swivel-Rockers.jpg',
'description' => null,
'thumb' => '/files/uploads/thumbs/Swivel-Rockers-cropped-140x140.jpg',
'resized' => '/files/uploads/resized/Swivel-Rockers-resized-460x156.jpg',
'mimetype' => 'image/jpeg',
'ext' => 'jpg',
'size' => '66232',
'sort' => null,
'created' => '2015-07-06 18:13:37',
'modified' => '2015-07-06 18:13:37'
)
),
(int) 10 => array(
'Category' => array(
'id' => '153',
'site_id' => '1',
'parent_id' => '10',
'lft' => '86',
'rght' => '87',
'name' => '* Eclectic Mix *',
'attachment_id' => null,
'description' => 'Add a dash of the eclectic to your patio with our unique selection of single pieces from the long and varied history of South Sea Rattan. Our Eclectic grouping has a wide selection of pieces that can provide a finishing touch to any setting.',
'visible' => true,
'count' => '2',
'slug' => 'eclectic-mix',
'created' => '2022-12-09 21:14:15',
'modified' => '2022-12-15 21:16:58'
),
'Attachment' => array(
'id' => null,
'site_id' => null,
'item_id' => null,
'product_id' => null,
'title' => null,
'filename' => null,
'description' => null,
'thumb' => null,
'resized' => null,
'mimetype' => null,
'ext' => null,
'size' => null,
'sort' => null,
'created' => null,
'modified' => null
)
),
(int) 11 => array(
'Category' => array(
'id' => '154',
'site_id' => '1',
'parent_id' => '10',
'lft' => '88',
'rght' => '93',
'name' => 'DISCONTINUED ',
'attachment_id' => null,
'description' => '',
'visible' => false,
'count' => '5',
'slug' => 'discontinued',
'created' => '2022-12-12 20:52:24',
'modified' => '2022-12-13 16:51:17'
),
'Attachment' => array(
'id' => null,
'site_id' => null,
'item_id' => null,
'product_id' => null,
'title' => null,
'filename' => null,
'description' => null,
'thumb' => null,
'resized' => null,
'mimetype' => null,
'ext' => null,
'size' => null,
'sort' => null,
'created' => null,
'modified' => null
)
)
)
CategoriesController::products() - APP/Controller/CategoriesController.php, line 152
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 111