Search code examples
radhtml5builder

Append database record in HTML5 builder fatal error


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


Solution

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

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

     global $dmMain;