pentium10
(Hexagonhu)
1
I am trying to attach a behavior to CActiveDataProvider
$b=new CActiveDataProvider(get_class($this), array(
'criteria'=>$criteria,
));
$b->attachBehavior('1',array(
'class' => 'application.components.MyBehavior',
));
I get
CException
Event "CActiveDataProvider.onAfterConstruct" is not defined.
\framework\base\CComponent.php(485)
What I am doing wrong?
tri
(tri - Tommy Riboe)
3
The onAfterConstruct event is defined in CModel. CActiveDataProvider doesn’t inherit from CModel.
/Tommy
pentium10
(Hexagonhu)
4
How to create behaviors for [color=#1C2837][size=2]CActiveDataProvider ?[/size][/color]
I get now the same problem. =( I do not know what happened. I’ve just added a behavior that work well in others sites.
same problem with me also
same problem with me also