Posts by Vandro.nds • 126 points
2 posts
-
1
votes1
answer24
viewsA: How to save data from a Carraydataprovider in the Database?
1 ° check if all values needed to save, if there is no $model->validate() will always return false and will never be saved. 2 ° if you are working with an array $userItensAvulso then you have to…
-
0
votes2
answers739
viewsA: How do I give the user permission to access a page in the Yii framework?
If the page you want to access is like this: localhost/app/index.php?r=usuario/admin, then you must get the file /app/protected/controllers/UsuarioController.php and within it seek the function…