Reply to Re: Using Zend and Object property/functions follow-up

Your name:

Reply:


Posted by Juliusz on 06/22/06 06:56

Hello,

> class A
> $var = $this->m_oObjectC->FctClassC();

you are trying to access method FctClassC() in Class B,
but Class B has not that method

> class B
> $oObjectC = new C();

in constructor you are initialising local variable
$oObjectC, it's can't be accessed from anywhere
after constructor finished

Solution:
1. change class B declaration on: Class B extends C
2. in constructor class B change: $this->oObjectC = new C();

Read about OOP.

I hope it's help.
--
Best Regards,
Juliusz
http://www.jetfish.net

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация