public function getNextFiscalYear()
  {
    $fiscalYearId = $this->FiscalYear->lastFiscalYearByOrganization($this->AuthenticationManager->getCurrentUserOrganizationId());

    $FiscalYear = $this->FiscalYear->byId($fiscalYearId);

    return json_encode(array('fiscalYear' => $FiscalYear->year + 1));
  }
public function getNextFiscalYear()
  {
    $fiscalYearId = $this->FiscalYear->lastFiscalYearByOrganization($this->AuthenticationManager->getCurrentUserOrganizationId());

    $FiscalYear = $this->FiscalYear->byId($fiscalYearId);

    return json_encode(array('fiscalYear' => $FiscalYear->year + 1));
  }
public function getNextFiscalYear ( ) { $ fiscalYearId = $ this -> FiscalYear -> lastFiscalYearByOrganization ( $ this -> AuthenticationManager -> getCurrentUserOrganizationId ( ) ) ; $ FiscalYear = $ this -> FiscalYear -> byId ( $ fiscalYearId ) ; return json_encode ( array ( 'fiscalYear' => $ FiscalYear -> year + 1 ) ) ; }
Echo grid data in a jqGrid compatible format


@return JSON encoded string
A string as follows:
In case of success: {"year" : $year}
Echo grid data in a jqGrid compatible format