How to use a Widget as an Action Provider

Comparing #7 with #9

Revision #9 was created by stinkytofu stinkytofu on Nov 20, 2015, 11:24:23 AM.

Spelling tweak

Content

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

##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('*'),
 
            ),
 
        );
 
    }
 
 
```