Under the Hood of Yii's Component Architecture

Under the Hood of Yii’s Component Architecture, Part 1

Under the Hood of Yii’s Component Architecture

This is Part 1 of a 3-part series that shows you some of the inner-workings of the Yii Framework’s component architecture. In this part you’ll learn how Yii’s CComponent class uses PHP’s magic __get() and __set() functions to take advantage of the benefits of getter and setter methods while still allowing access to properties as if they were public variables.

This entry is part of the series Under the Hood of Yii’s Component Architecture

Under the Hood of Yii’s Component Architecture, Part 3

Under the Hood of Yii’s Component Architecture

This is the last article in the three-part series of the Yii Framework’s component class, this time discussing behaviors. The goal of the series has been to show you how Yii implements a component-based architecture and how its CComponent class handles the implementation details by making clever use of PHP’s magic methods.

This entry is part of the series Under the Hood of Yii’s Component Architecture

© 1998-2012 SitePoint Pty. Ltd. All Rights Reserved