public function indexAction() { if (!$this->idcaja) { $this->new_error_msg("Caja incorrecta"); } $this->caja = caja::get($this->idcaja); if ($this->caja) { $this->recibos = $this->caja->findRecibos(); } else { $this->recibos = array(); } }