tags:

views:

40

answers:

2

I'm having difficulties in setting the values of a private variable in the construct of a class i'm working on...

Can anyone spot where i'm going wrong?

function __contruct($brokerId){
      parent::__contstruct($brokerId);
      $this->_coverSummaryPoints = array('option1' => array('bullet point 1',
                                                            'bullet point 69'), 
                                         'option2' => array('bullet dash1',
                                                            'bullet dash2')
                                                                              );

}

That's my code, but for some reason the coverSummaryPoints value isn't being set.

Any help is greatly appreciated.

+3  A: 

Are you sure you spelled the contruct/contstruct correctly?

Roberto Aloi
A: 

LMAO.... what a stupid mistake.

That fixed it, would you guys believe I have a faulty keyboard?

Sjwdavies
Please don't treat this like a messageboard. If you have something to add you should post comments or edit the question rather than add an answer. Also, if the answer helped please accept it.
Yacoby
is your answer caused by the faulty keyboard or ?
Kemo
That's a bit harsh Yacoby. I'm new to StackOverflow and don't know how to mark a 'Question' as closed or answered?
Sjwdavies
To mark a question as "answered", simply click on the "accept" button of the chosen answer.
Roberto Aloi
Thanks Roberto.
Sjwdavies