ErrorException [ Notice ]: Undefined variable: key

APPPATH/views/site/pages/v_basket.php [ 676 ]

671 	        typeC = 1;
672         }
673         if (oldC < el.value) {
674 	        typeC = 2;
675         }
676         $("#oldVal_<?=$key?>").val(el.value);
677         var sum = price * el.value;
678         var e = document.querySelector('#priceVal_'+id);
679         var priceEl = document.querySelector('#priceVal_'+id);
680         var priceVal = document.getElementById('priceVal').innerHTML;
681         priceVal = (parseFloat(priceVal).toFixed(2) - parseFloat(e.innerHTML).toFixed(2) + sum);
  1. APPPATH/views/site/pages/v_basket.php [ 676 ] » 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/views/site/v_base.php [ 130 ] » Kohana_View->__toString()

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

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

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

  9. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  10. APPPATH/classes/Controller/Site/Base.php [ 128 ] » Kohana_Response->body(arguments)

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

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

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

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

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

  16. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment