hi
i read this docs http://www.yiiframework.com/doc/guide/1.1/en/basics.component
in this
[color="#0000FF "]2. Component Event
Component events are special properties that take methods (called event handlers) as their values. Attaching (assigning) a method to an event will cause the method to be invoked automatically at the places where the event is raised. Therefore, the behavior of a component can be modified in a way that may not be foreseen during the development of the component.
A component event is defined by defining a method whose name starts with on. Like property names defined via getter/setter methods, event names are case-insensitive. The following code defines an onClicked event:[/color]
public function onClicked($event)
{
$this->raiseEvent('onClicked', $event);
}
I didn’t understand about this onClicked or so called onClicked use, i know onclicked appear in input html tag, but how php handle this onClicked event?
its will be more easier to understand if this document giving real simple example thank you
zaccaria
(Matteo Falsitta)
June 9, 2011, 9:10am
2
Thiss example is a bit confusing, in fact Yii has not handlers for manage the onClick of buttons.
Real example are even onBeforeSave, onAfterFind of the model.
Yii is not event driven as Prado, it means that the input ($_GET, $POST) should be managed by developers