Warning (2): Invalid argument supplied for foreach() [APP/Plugin/Products/View/Assets/cart.ctp, line 38]Code Context <?php $total = 0; if ($this->Session->check('Products')); $products = $this->Session->read('Products'); foreach($products['Product'] as $key => $result) { ?>$viewFile = '/chroot/home/ironlaboratories/ironlaboratories.com/html/app/Plugin/Products/View/Assets/cart.ctp' $dataForView = array( 'modelClass' => 'Asset', 'body_class' => 'cart', 'body_id' => 'assets', 'seo_title' => 'Iron Laboratories', 'domain' => 'ironlaboratories.com' ) $modelClass = 'Asset' $body_class = 'cart' $body_id = 'assets' $seo_title = 'Iron Laboratories' $domain = 'ironlaboratories.com' $total = (int) 0 $products = nullinclude - APP/Plugin/Products/View/Assets/cart.ctp, line 38 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 968 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 109
<?php $total = 0; if ($this->Session->check('Products')); $products = $this->Session->read('Products'); foreach($products['Product'] as $key => $result) { ?>
<?php $total = 0; if ($this->Session->check('Products'));
$products = $this->Session->read('Products');
foreach($products['Product'] as $key => $result) { ?>
$viewFile = '/chroot/home/ironlaboratories/ironlaboratories.com/html/app/Plugin/Products/View/Assets/cart.ctp' $dataForView = array( 'modelClass' => 'Asset', 'body_class' => 'cart', 'body_id' => 'assets', 'seo_title' => 'Iron Laboratories', 'domain' => 'ironlaboratories.com' ) $modelClass = 'Asset' $body_class = 'cart' $body_id = 'assets' $seo_title = 'Iron Laboratories' $domain = 'ironlaboratories.com' $total = (int) 0 $products = null
include - APP/Plugin/Products/View/Assets/cart.ctp, line 38 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 968 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 109