🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #220419

Re: dostaje blad zwiazany z tym, ze sesje tworze w klasie

#220419
From: emila
Date: Thu, 03 Sep 2009 14:36
23 lines
1664 bytes
dziobacz pisze:
>--------------------------------------------------------------
> I potem robie tak:
> ----------------------------------------------------------------------------------
> session_start();
> $koszyk = klasaKoszyk::getInstance();
> $koszyk->addToCart(1);
> ----------------------------------------------------------------------------------
> Za pierwszym razem dziala, a za drugim juz wywala blad:
> 
> Fatal error: Cannot use object of type klasaKoszyk as array in C:
> \Program Files\WebServ\httpd\klasy\klasaKoszyk.php on line 30
> 
> linia nr 30 to ta, dla ktorej powyzej dalem dwie gwiazdki w komentarzu
> Dlaczego ?

witam,

jaka wersja php??
zapraszam na http://www.php.net/manual/pl/language.oop5.patterns.php#90360

-- 
  AB
Technical Details
Message-ID: <h7okan$e9h$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <2ebaa9a3-80d1-43af-9af0-1c3f506292ba@e11g2000yqo.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: emila <warunek@poczta.onet.eu>
Newsgroups: pl.comp.lang.php
Subject: Re: dostaje blad zwiazany z tym, ze sesje tworze w klasie
Date: Thu, 03 Sep 2009 16:36:58 +0200
Organization: http://onet.pl
Lines: 23
Message-ID: <h7okan$e9h$1@news.onet.pl>
References: <2ebaa9a3-80d1-43af-9af0-1c3f506292ba@e11g2000yqo.googlegroups.com>
NNTP-Posting-Host: apn-77-115-12-163.dynamic.gprs.plus.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1251988631 14641 77.115.12.163 (3 Sep 2009 14:37:11 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Thu, 3 Sep 2009 14:37:11 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <2ebaa9a3-80d1-43af-9af0-1c3f506292ba@e11g2000yqo.googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit