Posts by Clyff • 138 points
3 posts
-
1
votes1
answer491
viewsA: How to create access restriction for an action in yii2.0
Yii2 has Access Control support. They are: Access Control Filter RBAC (Role Based Access Control) They are best explained in documentation. But in short: AccessControl, you will use in a project…
-
0
votes1
answer49
viewsA: Action update widget dynamicform not saved in Yii 2.0 database
In your Update action you are creating a new array for the variable $modelsPoItem: $modelsPoItem = [new PoItem]; You should popular this variable with the values there in the database. Something…
-
1
votes2
answers262
viewsA: Inserting multiple templates in a Yii2 form
In your action, you have to use the methods load() and save() for both classes. In your example, you load twice in one class and save (twice also) in the other. Follow your example with some…