Difference between #1 and #2 of
How to use bizRules in standard accessControl filter

Revision #2 has been created by Maciej Liżewski on May 29, 2014, 11:51:34 AM with the memo:

Yii version
« previous (#1)

Changes

Title unchanged

How to use bizRules in standard accessControl filter

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

rbac, extension, filter, data loader

Content unchanged

[...]
4. data loader method - it is required that it must be "public" method (accessible from filter). You may implement scenarios when model is required (throw exception if it does not exists) or just optional models (leave null value in $this->model attribute)

5. you code actions as usual except that you do not need to load data in the beginning and check privileges - this pattern assures you that those checks are already done.

As you can see - it is extremely easy to implement and greatly clarifies controller code. Also makes possible to use standard access rules but with parameters needed for bizRules.
3 0
8 followers
Viewed: 20 911 times
Version: 1.1
Category: How-tos
Written by: Maciej Liżewski
Last updated by: Maciej Liżewski
Created on: Jul 3, 2013
Last updated: 9 years ago
Update Article

Revisions

View all history