parent:: and this->
Posted: Wed Jun 04, 2008 7:31 am
I am doing some mixing up and slimming of files to make things easier to edit and keep track of. One problem I am having though is accessing some of the parents class properties. I was using this:
but thats not going to be good for me anymore as I am using a subclass to do that work. I have tried:
so how to I access a parent object variable properly in a child class?
Code: Select all
$this->_request->getParam('variable');Code: Select all
parent::_request->getParam('variable');//error unexpected T_OBJECT_OPERATOR
parent::_request::getParam('variable');//error unexpected T_PAAMAYIM_NEKUDOTAYIM