Difference between #7 and #9 of
How to use a Widget as an Action Provider

Revision #9 has been created by stinkytofu on Nov 20, 2015, 11:24:23 AM with the memo:

Spelling tweak
« previous (#7) next (#10) »

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

[...]
),
);
}
```

##Access Rules
 
Also, if you have implemented the accessRules method in the controller, make sure that you _allow_ that action in the accessRules method, otherwise you will receive 404 error. So, something like this will do the trick:
 
 
 
```php 
public function accessRules()
 
    {
 
        return array(
 
            array('allow',
 
                'actions' => array('test.getData'),
 
                'users' => array('*'),
 
            ),
 
            array('deny', 
 
                'users' => array('*'),
 
            ),
 
        );
 
    }
 
 
```
 
 
 
 
 
24 0
41 followers
Viewed: 61 014 times
Version: 1.1
Category: How-tos
Written by: Antonio Ramirez
Last updated by: stinkytofu
Created on: Feb 18, 2011
Last updated: 9 years ago
Update Article

Revisions

View all history