Pergunta

I have some code in my application:

    $dmMain->tblOrgList->append();

This code written with auto-completion, so everything is correct. But, when I trying to execute this code, I have error:

Fatal error: Call to a member function append() on a non-object in C:\Users\ASAP\Documents\HTML5 Builder\Projects\VitoOrgList\index.php on line 18

Can somebody advice, where I can find a trouble? Thanks

Foi útil?

Solução

I found the solution. Really, I have no big PHP experience :-]

I just added before calling $dmMain methods in function body:

 global $dmMain;
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top