Revision #8 has been created by GOsha on Oct 30, 2011, 8:45:30 PM with the memo:
added "understanding" tag to the article
« previous (#7)
Understanding Virtual Attributes and get/set methods
; __get; __set
[...]But because of Yii's implementation of `__get/set`, these will not work because the low-level methods in `CComponent` throw an exception for an unknown attribute rather than let it fall through (which would enable dynamic attributes).
Some question the wisdom of blocking this, though others may well appreciate the safety it provides by insuring that a typo in an attribute name won't silently do the wrong thing rather than attempt to assign a close-but-not-quite attribute name to an object.
More info: [Dynamic Properties in PHP](http://krisjordan.com/dynamic-properties-in-php-with-stdclass)