Class and subclass

From: Date: Wed, 07 Mar 2007 13:23:10 +0000
Subject: Class and subclass
Groups: php.general 
Request: Send a blank email to php-general+get-249969@lists.php.net to get a copy of this message
Hi, i have a class A with some properties. i have a class B with several public functions (i.e : Render()) i would like to do something like that : class B() { B() { } public function Render() { ... } } class A { private $myotherclass; A() { $this->myotherclass = new classB(); } public function test() { $this->myotherclass->Render(); } } however, i'm not able to access to ->Render() of class B from Class A property. Where could be the problem ? -- Alain ------------------------------------ Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5

« previous php.general (#249969) next »