Difference between #6 and #7 of
Behaviors & events

Revision #7 has been created by Gismo on Jan 10, 2013, 12:27:14 PM with the memo:

Add russian version
« previous (#6)


Title unchanged

Behaviors & events

Category unchanged


Yii version unchanged

Tags unchanged

Content changed

$test_comp->add(2, 5);

So, in this case, you are extending the functionality of an object with functionality of another object.

After studying this cookbook page you are encouraged to reread the [corresponding guide page](http://www.yiiframework.com/doc/guide/basics.component) as it contains advanced information (for example, if you are familiar with interfaces, you might find it enough to implement IBehavior before extending CBehavior).

- Russian version: [Поведение и события](http://phptime.ru/blog/yii/31.html)
43 0
Viewed: 133 581 times
Version: 1.1
Category: Tutorials
Written by: pestaa
Last updated by: Gismo
Created on: Aug 24, 2009
Last updated: 5 years ago
Update Article


View all history