How to use a Widget as an Action Provider

Comparing #6 with #7

Revision #7 was created by Antonio Ramirez Antonio Ramirez on Jan 19, 2012, 2:14:23 PM.

Fixed minor typing error

Content

[...]
All done, now we can call all the **actionProvider** actions as **controllerID/actionPrefix.actionID**. Here is the example:


```php
index.php?
r=site/test.GetData
```

###Passing Parameters to Actions
As you all know, and already explained in the wiki [Actions Code Reuse with CAction](http://www.yiiframework.com/wiki/170/actions-code-reuse-with-caction/ "Actions Code Reuse with CAction"), Actions are classes that extend from CAction, that is, a CComponent. If we wish to pass parameters to the actions that are within the provider, we have to do it this way when configuring your controller (step 3) (Thanks to [Attilio](http://www.yiiframework.com/user/25057/ "Attilio") for pointing this out):
[...]