public function execute() { $deId = filter_input(INPUT_POST, 'deId'); $detalleEjecucion = new detalleEjecucionTable(); $detalleEjecucion->setId($deId); $this->objEntradaSalidaBodega = $detalleEjecucion->delete(); $variables = array('data' => array('code' => 200)); $this->defineView('detalleEjecucion', 'eliminar', $variables, 'json'); }