Sort by:

Understanding Yii CWebApplication

On Monday, 17 September, 2012

CWebApplication is a subclass of CApplication. It is the object behind Yii framework. It provides the functionalities needed to respond to a web request and it is the class responsible for the handling the MVC pattern in Yii.   Read

Tags: what is, yii

How do you create your own event object?

On Monday, 17 September, 2012

An event object encapsulates the information about the event. For a mouse click, it could provide the button (left or right) which was clicked. The type of information this object carries vary according to how it is implemented. How do you create your own event object?  Read

Tags: events, yii

A pattern for Yii Events Handling-Other Object listens to the event

On Monday, 17 September, 2012

For a given web request, there could be many events which could occur on an object. If the object must respond to multiple events, then these events become unmanageable and encapsulate too much in one place that should probably be separated.  Read

Tags: events, yii

A pattern for Yii Events Handling-Object listens to itself

On Monday, 17 September, 2012

In this post, we will discuss a pattern for handling generated events by event generators themselves.  Read

Tags: events, yii

How Event System works in Yii

On Monday, 17 September, 2012

Sometimes we would like to monitor when something special occurs in our web application. It could be when a user withdraws certain amount of money from their account or when we save an instance of a model.  Read

Tags: events, yii