Strange non-object
| From: | Marcus Leandro de Faria Reis | Date: | Wed, 07 Sep 2005 17:29:56 +0000 |
| Subject: | Strange non-object | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6198@lists.php.net to get a copy of this message | ||
look at the code below:
<?
dl('php_gtk.' . PHP_SHLIB_SUFFIX);
//inclui classes necessarias
include_once '../classes/Login.class';
$login = &new Login();
$login->tabela_de_consulta = 'usuarios';
$login->coluna_usuario = 'usuario_login';
$login->coluna_senha = 'usuario_senha';
$login->executar->connect_object('clicked', 'Inicializa');
function Inicializa()
{
$login->janela->hide();
include("main.php");
}
gtk::main();
php says:
Fatal error: Call to a member function on a non-object
in /home/marcus/lanhelp/projetos/lanhelpsystem/gtk/lanhelpsystem.php on
line 17 --> $login->janela->hide();
$janela is a GtkWindow created inside Login.class with this line:
$this->janela = &new GtkWindow;
so, whats wrong??
-----------------------------------
Marcus Reis
marcus@lanhelp.com.br
Lanhelp Soluções
www.lanhelp.com.br
_______________________________________________________
Yahoo! Messenger com voz: PROMOÇÃO VOCÊ PODE LEVAR UMA VIAGEM NA CONVERSA. Participe!
www.yahoo.com.br/messenger/promocao