Hi, Does anyone read the Cal Evans book, php|a's Guide to Programming with Zend Framework?
I have some simple questions just want to make clear: If a class has a protected member/property, say _data, which be assigned to as a Zend' Db row object on the member table, can you access it as: after $this->_data = $member; $this->emailAddress, instead of $this->_data->emailAddress ? If you read the book, check out the chapter4's sample code, suddenly, we can directly access the $member->emailAdress? And, also, in the register view, when we assigned the view variable emailAddress etc, so use the echo $this->escape($this->emailAddress) do not generate an undefined variable warning? These may stupid simple question, but these kind thing I never do. I check the code, does somewhere in the ZF has utilized the magic method, such as __get or __set to automatically handle this? Thanks.
