Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 42 Pomógł: 0 Dołączył: 5.11.2003 Ostrzeżenie: (0%)
|
czesc
czy moglibyscie mi powiedziec dlaczego kod: [php:1:1e0113cc4a]<?php class test { function testing() { print "OLABOGA"; } } class nowa { function nic() { $test -> testing(); } } class engine { var $test; var $nowa; function engine() { $this -> test = new test; $this -> test -> testing(); $this -> nowa = new nowa; $this -> nowa -> nic(); } } $engine = new engine(); ?>[/php:1:1e0113cc4a] zwraca blad: Cytat Call to a member function on a non-object
(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ? Czy zawsze trzeba przekazywac obiekty przez tablice $_GLOBALS ? A moze jakos inaczej? Dzieki. |
|
|
|
dzieciol4 przekazywanie obiektow miedzy klasami 17.02.2004, 12:18:12
Seth <?php
class test
{
function testing()
{
... 17.02.2004, 12:24:34
dzieciol4 dzieki seth na tobie mozna polegac jak na zawiszy ... 17.02.2004, 12:36:11 ![]() ![]() |
|
Aktualny czas: 21.12.2025 - 07:43 |