Warning (2): count(): Parameter must be an array or an object that implements Countable [APP/Controller/CarroController.php, line 250]Code Context            }
            else {
                for ($i=0 ; $i<count($productos) ; $i++) {
$id = '46'
$cantidad = '0'
$productos = null
$i = (int) 0
CarroController::cantidad() - APP/Controller/CarroController.php, line 250
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110
 
Warning (2): Invalid argument supplied for foreach() [APP/Controller/CarroController.php, line 258]Code Context                }
                $promociones = false;
                foreach ($productos as $producto) {
$id = '46'
$cantidad = '0'
$productos = null
$i = (int) 0
$promociones = false
CarroController::cantidad() - APP/Controller/CarroController.php, line 258
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110