Difference between #5 and #6 of
How to use a Widget as an Action Provider

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',    ),
 
), ); } ```
24 0
41 followers
Viewed: 59 890 times
Version: 1.1
Category: How-tos
Written by: Antonio Ramirez
Last updated by: stinkytofu
Created on: Feb 18, 2011
Last updated: 8 years ago
Update Article

Revisions

View all history