ErrorException [ Notice ]: Undefined index: cart

APPPATH/views/home/order/cart.php [ 4 ]

1 <div id="main" class="">
2     <div class="container" id="cartTable"> 
3     	<h4>CHI TIẾT GIỎ HÀNG</h4>
4     	<?php $array = json_decode($_COOKIE['cart'], true); ?>
5     	<?php if(isset($array) && !empty($array)): ?>
6     	<?php
7     		function _group_by($array, $key) {
8 			    $return = array();
9 			    foreach($array as $val) {
  1. APPPATH/views/home/order/cart.php [ 4 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  5. APPPATH/template/portal/default/layout.php [ 16 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  8. APPPATH/template/master.php [ 34 ] » Kohana_View->render()

  9. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  10. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  11. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  12. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  13. {PHP internal call} » Kohana_Controller->execute()

  14. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  15. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  16. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  17. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()

Environment