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

有帮助吗?

解决方案

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

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

 global $dmMain;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top