Revision #6 has been created by sumwai on Dec 13, 2011, 8:59:22 AM with the memo:
The last code example is wrong
« previous (#5) next (#7) »
Changes
Title
unchanged
How to use a Widget as an Action Provider
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Widgets, CAction
Content
changed
[...]
return array(
// test. is the prefix we are going to use on our URL
// for all actions within the actionProvider class
// we point to the location where the provider
// is.
'test.'=>array(
'class'=>'application.components.testProvider',
'getData'=>array(
// property1 must be a public variable
// on getData CAction class
'property1'=>'value1',
),
),
);
}
```