How to use a Widget as an Action Provider

Comparing #5 with #6

Revision #6 was created by sumwai sumwai on Dec 13, 2011, 8:59:22 AM.

The last code example is wrong

Content

[...]
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',    ),
 
), ); } ```