I have a Treeview on my main page. This makes the control a member of main page class.
How can I access this control from another PHP script?
A "require_once" with the main page file doesn't work, that re-creates the main page when the other script is called because of the commands at the bottom of each VCL-page's source.
Unfortunately, I couldn't find a solution to this, so a major restructuring of the software could prevent the situation.
Separate your tree class and the main page.
require_once("tree.class.php");
Why would you access the treeview from another script? It seems like you have to do something that requires user action. Maybe you should go after some javascript.