JA
o erro de "arquivo não encontrado: .ini"
Meu teste com nfephp está retornando o erro de "arquivo não encontrado: .ini"
segue o código :
segue o código :
- <?php
- /**
- * Baixa por Lote
- * ContasReceberSelectionList Record selection
- * @author <your name here>
- */
- class NfePhpTesteStatus extends TStandardList
- {
- protected $form; // search form
- protected $datagrid; // listing
- protected $pageNavigation;
- public function __construct()
- {
- parent::__construct();
- parent::add(new TLabel('Status da Nota Fiscal Eletrônica (por estado) :'));
- $this->onVerificaSefaz();
- }
- public function onVerificaSefaz()
- {
- //error_reporting(E_ALL);
- //ini_set('display_errors', 'On');
- $nfe = new nfephp\NFe\ToolsNFe('nfephp/config/config.json');
- $nfe->setModelo('55');
- $aResposta = array();
- $siglaUF = 'AL';
- $tpAmb = '2';
- $retorno = $nfe->sefazStatus($siglaUF, $tpAmb, $aResposta);
- echo '<br><br><pre>';
- echo htmlspecialchars($nfe->soapDebug);
- echo '</pre><br><br><pre>';
- print_r($aResposta);
- echo "</pre><br>";
- /*
- parent::add(new TLabel($aResposta['cStat']));
- parent::add(new TLabel($aResposta['xMotivo']));
- parent::add(new TLabel($aResposta['dhRecbto']));
- */
- new TMessage('info', $aResposta['cStat'].'
- '.$aResposta['xMotivo'].'
- '.$aResposta['dhRecbto']);
- }
- }
Faça um extends TPage ao invés de TStandardList
Obrigado Nataniel, era isso mesmo!!!!