Re: PHP4 Object Issues.
| From: | Scott Mattocks | Date: | Tue, 02 Aug 2005 19:28:26 +0000 |
| Subject: | Re: PHP4 Object Issues. | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6119@lists.php.net to get a copy of this message | ||
Hello Piero,
I think the problem you are having is related to references. Any time you assign a widget to some other variable, you need to use '&'. Change your code to this and see if it works:
function selecionar(&$node, $id) {
global $projeto;
$data = $this->ctree->node_get_row_data($node);
$this->node_selecionado =& $node; // this is the variable i need
to store
}
Scott Mattocks